Skip to main content

Class: StaticStringType

Extends

Constructors

Constructor

new StaticStringType(length, name): StaticStringType

Parameters

length

number

name

string

Returns

StaticStringType

Overrides

ArrayType.constructor

Properties

ffiType

readonly ffiType: ArrayType

Inherited from

ArrayType.ffiType


ffiTypeStruct

readonly ffiTypeStruct: SimpleType<number[]>

Inherited from

ArrayType.ffiTypeStruct


length

readonly length: number

Inherited from

ArrayType.length


name

readonly name: string

Inherited from

ArrayType.name


size

readonly size: number

Inherited from

ArrayType.size

Methods

fromBuffer()

fromBuffer(buf, ctx?): string

Parameters

buf

Uint8Array

ctx?

Returns

string

Overrides

ArrayType.fromBuffer


toBuffer()

toBuffer(str, ctx?): Uint8Array

Parameters

str

string

ctx?

Returns

Uint8Array

Overrides

ArrayType.toBuffer