Methods
writeBoolean
- writeBoolean(value: boolean): W
writeBytes
- writeBytes(value: Uint8Array): W
writeDate
- writeDate(value: Date): W
writeDocument
- writeDocument<K>(keys: Iterable<K>, handler: function): W
-
Type parameters
Parameters
-
keys: Iterable<K>
-
handler: function
-
- <FW>(key: K, fieldWriter: Writer<FW>): FW
-
Type parameters
Parameters
-
key: K
-
fieldWriter: Writer<FW>
Returns FW
Returns W
writeFloat64
- writeFloat64(value: number): W
writeList
- writeList(size: number, handler: function): W
-
Parameters
-
size: number
-
handler: function
-
- <IW>(index: number, itemWriter: Writer<IW>): IW
-
Type parameters
Parameters
-
index: number
-
itemWriter: Writer<IW>
Returns IW
Returns W
writeMap
- writeMap(size: number, keyHandler: function, valueHandler: function): W
-
Parameters
-
size: number
-
keyHandler: function
-
- <KW>(index: number, mapKeyWriter: Writer<KW>): KW
-
Type parameters
Parameters
-
index: number
-
mapKeyWriter: Writer<KW>
Returns KW
-
valueHandler: function
-
- <VW>(index: number, mapValueWriter: Writer<VW>): VW
-
Type parameters
Parameters
-
index: number
-
mapValueWriter: Writer<VW>
Returns VW
Returns W
writeString
- writeString(value: string): W
W: Write result type.