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-value"
BsonValueWriter
Class BsonValueWriter
Hierarchy
StructuredWriter
BsonValueWriter
Implements
Writer
<
any
>
Index
Constructors
constructor
Properties
bson
Lib
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
Value
Writer
(
bsonLib
:
"/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"
)
:
BsonValueWriter
Parameters
bsonLib:
"/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"
Returns
BsonValueWriter
Properties
Private
bson
Lib
bson
Lib
:
"/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"
Methods
write
Any
write
Any
(
value
:
any
)
:
any
Parameters
value:
any
Returns
any
write
Boolean
write
Boolean
(
value
:
boolean
)
:
boolean
Parameters
value:
boolean
Returns
boolean
write
Bytes
write
Bytes
(
value
:
Uint8Array
)
:
Binary
Parameters
value:
Uint8Array
Returns
Binary
write
Date
write
Date
(
value
:
Date
)
:
Date
Parameters
value:
Date
Returns
Date
write
Document
write
Document<K>
(
keys
:
Iterable
<
K
>
, handler
:
function
)
:
Record
<
K
,
any
>
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
Record
<
K
,
any
>
write
Float64
write
Float64
(
value
:
number
)
:
number
Parameters
value:
number
Returns
number
write
List
write
List
(
size
:
number
, handler
:
function
)
:
any
[]
Parameters
size:
number
handler:
function
(
index
:
number
, itemWriter
:
Writer
<
any
>
)
:
any
Parameters
index:
number
itemWriter:
Writer
<
any
>
Returns
any
Returns
any
[]
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
(
)
:
null
Returns
null
write
String
write
String
(
value
:
string
)
:
string
Parameters
value:
string
Returns
string
Globals
"writers/bson-
value"
Bson
Value
Writer
constructor
bson
Lib
write
Any
write
Boolean
write
Bytes
write
Date
write
Document
write
Float64
write
List
write
Map
write
Null
write
String
Generated using
TypeDoc