BinaryFormat.Transform
Syntax
BinaryFormat.Transform(binaryFormat as function, function as function) as function
About
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.
Example 1
Read a byte and add one to it.
Usage
let
binaryData = #binary({1}),
transformFormat = BinaryFormat.Transform(
BinaryFormat.Byte,
(x) => x + 1
)
in
transformFormat(binaryData)
Output
2
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho