Interface IDataWriter

Index

Properties

Methods

Properties

public byteOrder: ByteOrder

public unicodeEncoding: UnicodeEncoding

public unstoredBufferLength: number

Methods

public detachBuffer(): IBuffer

Returns

IBuffer

public detachStream(): IOutputStream

Returns

IOutputStream

public flushAsync(): IAsyncOperation

Returns

IAsyncOperation

public measureString(value: string): number

Parameters

  • value: string

Returns

number

public storeAsync(): DataWriterStoreOperation

Returns

DataWriterStoreOperation

public writeBoolean(value: boolean)

Parameters

  • value: boolean

public writeBuffer(buffer: IBuffer)

Parameters

public writeBuffer(buffer: IBuffer, start: number, count: number)

Parameters

  • buffer: IBuffer
  • start: number
  • count: number

public writeByte(value: number)

Parameters

  • value: number

public writeBytes(value: Uint8Array)

Parameters

  • value: Uint8Array

public writeDateTime(value: Date)

Parameters

  • value: Date

public writeDouble(value: number)

Parameters

  • value: number

public writeGuid(value: string)

Parameters

  • value: string

public writeInt16(value: number)

Parameters

  • value: number

public writeInt32(value: number)

Parameters

  • value: number

public writeInt64(value: number)

Parameters

  • value: number

public writeSingle(value: number)

Parameters

  • value: number

public writeString(value: string): number

Parameters

  • value: string

Returns

number

public writeTimeSpan(value: number)

Parameters

  • value: number

public writeUInt16(value: number)

Parameters

  • value: number

public writeUInt32(value: number)

Parameters

  • value: number

public writeUInt64(value: number)

Parameters

  • value: number