Writes a number as 8-bit unsigned integer.
name of the field
byte value to be written. Must be a valid unsigned 8-bit integer. Behaviour is undefined when value is anything other than a unsigned 8-bit integer.
Writes a single character string using char.charCodeAt(0).
A two-byte unsigned integer representing the UTF-16 code unit value of the single character string will be written.
name of the field
char value to be written
Writes an array of single character strings using char.charCodeAt(0).
For each single character string, a two-byte unsigned integer representing the UTF-16 code unit value will be written.
name of the field
char array to be written
Writes a decimal.
name of the field
BigDecimal value to be written
name of the field
BigDecimal array to be written
Writes an array of numbers as doubles.
name of the field
double array to be written. Each value must be a JavaScript number. Behavior is undefined when any value is anything other than a JavaScript number.
Writes an array of numbers as floats.
name of the field
float array to be written. Each value must be a JavaScript number. Behavior is undefined when any value is anything other than a JavaScript number.
Writes a number as 32-bit signed integer.
name of the field
int value to be written. The value must be a valid signed 32-bit integer. Behavior is undefined when value is anything other than a signed 32-bit integer.
Writes an array of numbers as 32-bit signed integer array.
name of the field
int array to be written. Each value must be a valid signed 32-bit integer. Behavior is undefined when any value is anything other than a signed 32-bit integer.
To write a null Portable value, you need to provide class and factory IDs of the related class.
name of the field
factory ID of related Portable class
class ID of related Portable class
Writes a Portable.
Use writeNullPortable to write a null Portable
name of the field
Portable to be written
Writes a number as 16-bit signed integer.
name of the field
short value to be written. The value must be a valid signed 16-bit integer. Behavior is undefined when value is anything other than an signed 16-bit integer.
Writes an array of numbers as 16-bit signed integers.
name of the field
short array to be written. Each value must be a valid signed 16-bit integer. Behavior is undefined when any value is anything other than a signed 16-bit integer.
Writes a timestamp.
name of the field
LocalDateTime value to be written
name of the field
LocalDateTime array to be written
Writes a timestamp with timezone.
name of the field
OffsetDateTime value to be written
name of the field
OffsetDateTime array to be written
Writes a string as UTF-8 encoded bytes.
since version 4.2 for the sake of better naming. Please use writeString instead.
name of the field
UTF string value to be written
Writes an array of strings. Each string is written as UTF-8 encoded bytes.
since version 4.2. for the sake of better naming. Please use writeStringArray instead.
name of the field
string array to be written
Generated using TypeDoc
Writer helper for Portable objects.