Module nixio.bin

Binary operations and conversion.

Functions

hexlify (buffer) Return a hexadecimal ASCII represantation of the content of a buffer.
unhexlify (hexvalue) Return a binary buffer from a hexadecimal ASCII representation.
crc32 (buffer, initial) Calculate the CRC32 value of a buffer.
b64encode (buffer) Base64 encode a given buffer.
b64decode (buffer) Base64 decode a given buffer.


Functions

hexlify (buffer)
Return a hexadecimal ASCII represantation of the content of a buffer.

Parameters:

  • buffer Buffer

Returns:

    representation using characters [0-9a-f]
unhexlify (hexvalue)
Return a binary buffer from a hexadecimal ASCII representation.

Parameters:

  • hexvalue representation using characters [0-9a-f]

Returns:

    binary data
crc32 (buffer, initial)
Calculate the CRC32 value of a buffer.

Parameters:

  • buffer Buffer
  • initial Initial CRC32 value (optional)

Returns:

    crc32 value
b64encode (buffer)
Base64 encode a given buffer.

Parameters:

  • buffer Buffer

Returns:

    base64 encoded buffer
b64decode (buffer)
Base64 decode a given buffer.

Parameters:

  • buffer Base 64 Encoded data

Returns:

    binary data
generated by LDoc 1.5.0 Last updated 2024-09-14 22:58:31