Power Query
published
Search
⌃K

BinaryFormat.Transform

BinaryFormat.Transform

Returns a binary format that will transform the values read by another binary format.
function (binaryFormat as function, function as function) as function

Description

Returns a binary format that will transform the values read by another binary format. The binaryFormat parameter specifies the binary format that will be used to read the value. The function is invoked with the value read, and returns the transformed value.

Category

Binary Formats.Transforming what was read

Examples

Read a byte and add one to it.
let
binaryData = #binary({1}),
transformFormat = BinaryFormat.Transform(
BinaryFormat.Byte,
(x) => x + 1)
in
transformFormat(binaryData)
2