Class MemoryStream

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Default value array: number[] = null

    Returns MemoryStream

Accessors

canSeek

  • get canSeek(): boolean
  • Returns boolean

canWrite

  • get canWrite(): boolean
  • Returns boolean

length

  • get length(): number
  • Returns number

position

  • get position(): number
  • set position(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

Methods

close

  • close(): void
  • Returns void

copyTo

flush

  • flush(): void
  • Returns void

read

  • read(array: number[], offset?: number, length?: number): number
  • Parameters

    • array: number[]
    • Default value offset: number = 0
    • Default value length: number = array.length

    Returns number

seek

  • seek(offset: number, origin: SeekOrigin): number
  • Parameters

    Returns number

setLength

  • setLength(length: number): void
  • Parameters

    • length: number

    Returns void

toArray

  • toArray(): number[]
  • Returns number[]

toString

  • toString(): string
  • Returns string

write

  • write(array: number[], offset?: number, length?: number): void
  • Parameters

    • array: number[]
    • Default value offset: number = 0
    • Default value length: number = array.length

    Returns void

writeByte

  • writeByte(byte: number): void
  • Parameters

    • byte: number

    Returns void

writeBytes

  • writeBytes(array: Uint8Array, offset?: number, length?: number): void
  • Parameters

    • array: Uint8Array
    • Default value offset: number = 0
    • Default value length: number = array.length

    Returns void

writeLine

  • writeLine(inputString?: string): void
  • Parameters

    • Default value inputString: string = null

    Returns void

writeLine1

  • writeLine1(inputString?: string, ...values: any[]): void
  • Parameters

    • Default value inputString: string = null
    • Rest ...values: any[]

    Returns void

writeString

  • writeString(inputString: string, newLine?: boolean): void
  • Parameters

    • inputString: string
    • Default value newLine: boolean = false

    Returns void

writeTo

Generated using TypeDoc