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