Writes a primitive boolean.
name of the field
boolean value to be written
Writes an array of primitive booleans.
name of the field
boolean array to be written
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 Buffer as byte array.
name of the field
Buffer to be written
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 date.
name of the field
LocalDate value to be written
Writes an array of LocalDate
s.
name of the field
LocalDate array to be written
Writes a decimal.
name of the field
BigDecimal value to be written
Writes an array of BigDecimal
s.
name of the field
BigDecimal array to be written
Writes a number as double.
name of the field
double value to be written. The value must be a JavaScript number. Behavior is undefined when value is anything other than a JavaScript number.
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 a number as float.
name of the field
float value to be written. The value must be a JavaScript number. Behavior is undefined when 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.
Writes a long.
name of the field
long value to be written
Writes an array of longs.
name of the field
long array to be written
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 an array Portables.
name of the field
Portable array 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 string as UTF-8 encoded bytes.
name of the field
UTF string value to be written
Writes an array of strings. Each string is written as UTF-8 encoded bytes.
name of the field
string array to be written
Write a time.
name of the field
LocalTime value to be written
Writes an array of LocalTime
s.
name of the field
LocalTime array to be written
Writes a timestamp.
name of the field
LocalDateTime value to be written
Writes an array of LocalDateTime
s.
name of the field
LocalDateTime array to be written
Writes a timestamp with timezone.
name of the field
OffsetDateTime value to be written
Writes an array of OffsetDateTime
s.
name of the field
OffsetDateTime array to be written
Writes a string as UTF-8 encoded bytes.
name of the field
UTF string value to be written
Writes an array of strings. Each string is written as UTF-8 encoded bytes.
name of the field
string array to be written
Generated using TypeDoc
Writer helper for Portable objects.