The builtin type varByteString.
The varByteString is a sequence of bytes (octets), including NUL.
This uses the same storage as varString. Making mutations is done in an
efficient way, avoiding too many reallocations and copying.
|
$Size()
int @public | Return the size of the varByteString, the number of bytes.
|
|
$ToString()
string @public | Return the varByteString as a string.
|
|
$toVarString()
varString @public | Return the varByteString as a varString.
|
|
$asVarString()
varString @public | Return the varByteString as a varString.
|
|
$toByteString()
byteString @public | Return the varByteString as a byteString.
|
|
$toVarByteString()
varByteString @public | Return the varByteString as-is, this is a no-op.
|
|
$find(s)
int @public | Return the lowest index where varByteString s appears.
|
|
$find(c)
int @public | Return the lowest index of the character c.
|
|
$find(s, start)
int @public | Return the lowest index where the varByteString s appears at or after
start.
|
|
$find(c, start)
int @public | Return the lowest index of the character c at or after start.
|
|
$findLast(s)
int @public | Return the highest index where varByteString s appears.
|
|
$findLast(c)
int @public | Return the highest index of the character c.
|
|
$startsWith(s)
bool @public | Return TRUE when the varByteString starts with s.
|
|
$endsWith(s)
bool @public | Return TRUE when the varByteString ends with s.
|
|
$hash()
int @public | Return a number that is a hash value of the varByteString.
|
|
$add(s)
varByteString @public | Append a byteString to the varByteString.
|
|
$slice(start)
varByteString @public | Return a copy of the varByteString, starting at index start.
|
|
$slice(start, end)
varByteString @public | Return a copy of the varByteString, starting at index start and ending
at end, inclusive.
|
|
$sliceSize(start, length)
varByteString @public | Return a copy of the varByteString, starting at index start with up to
length bytes.
|
|
$sliceWrap(start)
varByteString @public | Return a copy of the varByteString, starting at index start.
|
|
$sliceWrap(start, end)
varByteString @public | Return a copy of the varByteString, starting at index start and ending
at end, inclusive.
|
|
$sliceWrapSize(start, length)
varByteString @public | Return a copy of the varByteString, starting at index start with up to
length bytes.
|
|
$split()
list<byteString> @public | Return a list with the varByteString split into pieces, split at white
space.
|
|
$split(sep)
list<byteString> @public | Return a list with the varByteString split into pieces, split at sep.
|
|
|