Binary Module

This XQuery Module contains functions to process binary data, including extracting subparts, searching, basic binary operations and conversion between binary and structured forms.

This module is based on the EXPath Binary Module.

=Conventions=

All functions and errors in this module are assigned to the  namespace, which is statically bound to the bin prefix.

=Constants and Conversions=

bin:from-octets
=Basic Operations=

bin:find
=Text Decoding and Encoding=

bin:encode-string
=Packing and Unpacking of Numeric Values=

The functions have an optional parameter $octet-order whose string value controls the order: Least-significant-first order is indicated by any of the values least-significant-first, little-endian, or LE. Most-significant-first order is indicated by any of the values most-significant-first, big-endian, or BE.

bin:unpack-unsigned-integer
=Bitwise Operations=

bin:shift
=Errors=

=Changelog=

Introduced with Version 7.8.