A Writer that stores a sequence of bytes.
Call toByteString() to get the result.
|
$write(text)
status @public | Writes text and returns OK.
|
|
$write(text)
status @public | Writes text and returns OK.
|
|
$writeByte(byte)
status @public | Appends one byte byte and returns OK.
|
|
$Size()
int @public | Returns the current byte length.
|
|
$toByteString()
byteString @public | Returns the current byteString.
|
|
$remove()
int @public | Takes one byte from the end of the byteString and returns it.
|
|
$truncate() @public | Clear the contents of the writer, reset it to empty, keeping the buffer.
|
|
Inherited from IO.Writer:
|
|
$write(number)
status @public | Writes number as a decimal number.
|
|
$write(number)
status @public | Writes number as a decimal number.
|
|
$write(number)
status @public | Writes number as a decimal number.
|
|
$write(flag)
status @public | Writes flag as "TRUE" or "FALSE".
|
|
$write(ok)
status @public | Writes ok as "FAIL" or "OK".
|
|
$write(arg)
status @public | Writes arg depending on its actual type.
Returns FAIL or OK.
|
|
$writeChar(char)
status @public | Writes char as a UTF-8 byte sequence.
|
|
$print(text)
status @public | Writes text and appends a newline.
Returns FAIL or OK.
|
|
$print(number)
status @public | Writes number and appends a newline.
Returns FAIL or OK.
|
|
$print(number)
status @public | Writes number and appends a newline.
Returns FAIL or OK.
|
|
$print(number)
status @public | Writes number and appends a newline.
Returns FAIL or OK.
|
|
$print(flag)
status @public | Writes flag as "TRUE" or "FALSE" and appends a newline.
Returns FAIL or OK.
|
|
$print(ok)
status @public | Writes ok as "FAIL" or "OK" and appends a newline.
Returns FAIL or OK.
|
|
$print(arg)
status @public | Writes arg depending on its actual type and appends a newline.
Returns FAIL or OK.
|
|
$print()
status @public | Writes a newline and returns FAIL or OK.
|
|
$format(fmt, arguments)
status @public | Formats the string and writes it with a newline appended.
|
|