Table of contents
TOC
Collapse the table of content
Expand the table of content

BinaryFormat.Record

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns a binary format that reads a record. Each field in the record can have a different binary format.

BinaryFormat.Record(record as record) as function  

Arguments

ArgumentDescription
recordThe format of the record

Remarks

  • If a field contains a value that is not a binary format value, then no data is read for that field, and the field value is echoed to the result.

Example

// Read a record containing one 16-bit integer and one 32-bit integer.  
let  
binaryData = #binary({  
0x00, 0x01,   
0x00, 0x00, 0x00, 0x02}),  
recordFormat = BinaryFormat.Record([  
A = BinaryFormat.UnsignedInteger16,  
B = BinaryFormat.UnsignedInteger32  
])  
in  
recordFormat(binaryData)   
equals [A = 1, B = 2]  
© 2018 Microsoft