Skip to main content

Class: StaticStringType

Extends

Constructors

Constructor

new StaticStringType(length, name): StaticStringType

Parameters

length

number

name

string

Returns

StaticStringType

Overrides

AdvancedType.constructor

Properties

ffiType

readonly ffiType: StaticStringType

Inherited from

AdvancedType.ffiType


ffiTypeStruct

readonly ffiTypeStruct: SimpleType<string>

Inherited from

AdvancedType.ffiTypeStruct


name

readonly name: string

Inherited from

AdvancedType.name


size

readonly size: number

Inherited from

AdvancedType.size

Methods

fromBuffer()

fromBuffer(buf, ctx?): string

Parameters

buf

Uint8Array

ctx?

Returns

string

Overrides

AdvancedType.fromBuffer


toBuffer()

toBuffer(str, ctx?): Uint8Array

Parameters

str

string

ctx?

Returns

Uint8Array

Overrides

AdvancedType.toBuffer