bin:pack-integer

Returns the twos-complement binary representation of an integer value treated as $size octets long. Any 'excess' high-order bits are discarded.

pack-integer($in as xs:integer, $size as xs:integer) ➔ xs:base64Binary

Arguments

 

$in

xs:integer

The value to pack

 

$size

xs:integer

The octet length to pack within

Result

xs:base64Binary

pack-integer($in as xs:integer, $size as xs:integer, $octet-order as xs:string) ➔ xs:base64Binary

Arguments

 

$in

xs:integer

The value to pack

 

$size

xs:integer

The octet length to pack within

 

$octet-order

xs:string

The order (most/least significant first) in which to pack or unpack octets

Result

xs:base64Binary

Namespace

http://expath.org/ns/binary

Links to specifications

EXPath Binary Module