bin:unpack-integer
Returns a signed integer value represented by the $size
octets starting from
$offset
in the input binary representation. Necessary sign extension is
performed (i.e. the result is negative if the high order bit is '1').
unpack-integer($in as xs:base64Binary, $offset as xs:integer, $size as xs:integer) ➔ xs:integer
Arguments | |||
| $in | xs:base64Binary | Input binary data |
| $offset | xs:integer | Offset in octets into the input data |
| $size | xs:integer | The number of octets to unpack |
Result | xs:integer |
unpack-integer($in as xs:base64Binary, $offset as xs:integer, $size as xs:integer, $octet-order as xs:string) ➔ xs:integer
Arguments | |||
| $in | xs:base64Binary | Input binary data |
| $offset | xs:integer | Offset in octets into the input data |
| $size | xs:integer | The number of octets to unpack |
| $octet-order | xs:string | The order (most/least significant first) in which to pack or unpack octets |
Result | xs:integer |
Namespace
http://expath.org/ns/binary
Links to specifications
Saxon availability
Available whether or not support for XPath 3.0 is enabled. Implemented since Saxon 9.6. Requires Saxon-PE or Saxon-EE.