Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new BsonValueWriter(bsonLib: "/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"): BsonValueWriter

Properties

Private bsonLib

bsonLib: "/home/travis/build/demurgos/kryo/node_modules/@types/bson/index"

Methods

writeAny

  • writeAny(value: any): any

writeBoolean

  • writeBoolean(value: boolean): boolean

writeBytes

  • writeBytes(value: Uint8Array): Binary

writeDate

  • writeDate(value: Date): Date

writeDocument

  • writeDocument<K>(keys: Iterable<K>, handler: function): Record<K, any>

writeFloat64

  • writeFloat64(value: number): number

writeList

  • writeList(size: number, handler: function): any[]

writeMap

  • writeMap(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

writeNull

  • writeNull(): null

writeString

  • writeString(value: string): string

Generated using TypeDoc