QuickBEAM.VM.Runtime.Web.Buffer.BinaryCodec (QuickBEAM v0.10.9)

Copy Markdown View Source

Integer and float binary codecs for Buffer read/write methods.

Summary

Functions

Decodes a 32-bit or 64-bit float from a Buffer byte chunk.

Decodes an integer from a Buffer byte chunk using the requested signedness and endian mode.

Encodes a 32-bit or 64-bit float for Buffer writes.

Encodes an integer for Buffer writes using the requested signedness and endian mode.

Functions

decode_float(chunk, int, atom)

Decodes a 32-bit or 64-bit float from a Buffer byte chunk.

decode_int(chunk, size, atom1, atom2)

Decodes an integer from a Buffer byte chunk using the requested signedness and endian mode.

encode_float(value, int, atom)

Encodes a 32-bit or 64-bit float for Buffer writes.

encode_int(value, size, atom1, atom2)

Encodes an integer for Buffer writes using the requested signedness and endian mode.