makeBytes

Returns a segment representing the specified binary data encoded in byte mode. All input byte arrays are acceptable.

Any text string can be converted to UTF-8 bytes (s.getBytes(StandardCharsets.UTF_8)) and encoded as a byte mode segment.

Return

a segment (not null) containing the data

Parameters

data

the binary data (not null)

Throws

if the array is null