Base64Decoder()
语法
Result = Base64Decoder(*InputBuffer, InputSize, *OutputBuffer, OutputSize)概要
Decodes the specified Base64 encoded buffer.
参数
*InputBuffer The buffer containing the encoded data. InputSize The size of the input buffer. *OutputBuffer The output buffer where the plain data will be copied. OutputSize The size of the output buffer.
The output buffer can be up to 33% smaller than the input buffer, with a minimum size of 64 bytes. It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.
返回值
Returns the length of the decoded data in bytes.
示例
Example$ = "This is a test string!" Decoded$ = Space(1024) Encoded$ = Space(1024) Debug Base64Encoder(@Example$, StringByteLength(Example$), @Encoded$, 1024) Debug Encoded$ Debug Base64Decoder(@Encoded$, StringByteLength(Encoded$), @Decoded$, 1024) Debug Decoded$
参阅
Base64Encoder()
已支持操作系统
所有