bin:pad-right

Returns the binary data created by padding $in with $size blank octets from the right. The padding octet values are $octet or zero if omitted.

pad-right($in as xs:base64Binary?, $size as xs:integer) ➔ xs:base64Binary?

Arguments

 

$in

xs:base64Binary?

Input binary data

 

$size

xs:integer

The number of octets to pad

Result

xs:base64Binary?

pad-right($in as xs:base64Binary?, $size as xs:integer, $octet as xs:integer) ➔ xs:base64Binary?

Arguments

 

$in

xs:base64Binary?

Input binary data

 

$size

xs:integer

The number of octets to pad

 

$octet

xs:integer

Octet value to use in the padding

Result

xs:base64Binary?

Namespace

http://expath.org/ns/binary

Links to specifications

EXPath Binary Module

Saxon availability

Available whether or not support for XPath 3.0 is enabled. Implemented since Saxon 9.6. Requires Saxon-PE or Saxon-EE.