Search
Preparing search index...
The search index is not available
Kryo
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"writers/bson"
BsonWriter
Class BsonWriter
Hierarchy
BsonWriter
Implements
Writer
<
Buffer
>
Index
Constructors
constructor
Properties
bson
primitive
Wrapper
value
Writer
Methods
write
Any
write
Boolean
write
Bytes
write
Date
write
Document
write
Float64
write
List
write
Map
write
Null
write
String
Constructors
constructor
new
Bson
Writer
(
bson
:
"/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"
, primitiveWrapper
?:
string
)
:
BsonWriter
Parameters
bson:
"/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"
Default value
primitiveWrapper:
string
= "_"
Returns
BsonWriter
Properties
Private
bson
bson
:
"/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"
Private
primitive
Wrapper
primitive
Wrapper
:
string
Private
value
Writer
value
Writer
:
BsonValueWriter
Methods
write
Any
write
Any
(
value
:
number
)
:
Buffer
Parameters
value:
number
Returns
Buffer
write
Boolean
write
Boolean
(
value
:
boolean
)
:
Buffer
Parameters
value:
boolean
Returns
Buffer
write
Bytes
write
Bytes
(
value
:
Uint8Array
)
:
Buffer
Parameters
value:
Uint8Array
Returns
Buffer
write
Date
write
Date
(
value
:
Date
)
:
Buffer
Parameters
value:
Date
Returns
Buffer
write
Document
write
Document<K>
(
keys
:
Iterable
<
K
>
, handler
:
function
)
:
Buffer
Type parameters
K
:
string
Parameters
keys:
Iterable
<
K
>
handler:
function
(
key
:
K
, fieldWriter
:
Writer
<
any
>
)
:
any
Parameters
key:
K
fieldWriter:
Writer
<
any
>
Returns
any
Returns
Buffer
write
Float64
write
Float64
(
value
:
number
)
:
Buffer
Parameters
value:
number
Returns
Buffer
write
List
write
List
(
size
:
number
, handler
:
function
)
:
Buffer
Parameters
size:
number
handler:
function
(
index
:
number
, itemWriter
:
Writer
<
any
>
)
:
any
Parameters
index:
number
itemWriter:
Writer
<
any
>
Returns
any
Returns
Buffer
write
Map
write
Map
(
size
:
number
, keyHandler
:
function
, valueHandler
:
function
)
:
any
Parameters
size:
number
keyHandler:
function
<KW>
(
index
:
number
, mapKeyWriter
:
Writer
<
KW
>
)
:
KW
Type parameters
KW
Parameters
index:
number
mapKeyWriter:
Writer
<
KW
>
Returns
KW
valueHandler:
function
<VW>
(
index
:
number
, mapValueWriter
:
Writer
<
VW
>
)
:
VW
Type parameters
VW
Parameters
index:
number
mapValueWriter:
Writer
<
VW
>
Returns
VW
Returns
any
write
Null
write
Null
(
)
:
Buffer
Returns
Buffer
write
String
write
String
(
value
:
string
)
:
Buffer
Parameters
value:
string
Returns
Buffer
Globals
"writers/bson"
Bson
Writer
constructor
bson
primitive
Wrapper
value
Writer
write
Any
write
Boolean
write
Bytes
write
Date
write
Document
write
Float64
write
List
write
Map
write
Null
write
String
Generated using
TypeDoc