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<string>

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(buffer, ctx?): string

Parameters​

buffer​

Uint8Array

ctx?​

Returns​

string

Inherited from​

ArrayType.fromBuffer


toBuffer()​

toBuffer(data, ctx?): Uint8Array

Parameters​

data​

string

ctx?​

Returns​

Uint8Array

Inherited from​

ArrayType.toBuffer