Skip to main content
Version: v1

StringInterner Interface

Interns strings as integers.

Signature

export interface StringInterner

Methods

Method Return Type Description
getInternedId(input) InternedStringId | undefined
getSerializable() readonly string[]
getString(internedId) string

Method Details

getInternedId

Signature

getInternedId(input: string): InternedStringId | undefined;

Parameters

Parameter Type Description
input string

Returns

Return type: InternedStringId | undefined

getSerializable

Signature

getSerializable(): readonly string[];

Returns

Return type: readonly string[]

getString

Signature

getString(internedId: number): string;

Parameters

Parameter Type Description
internedId number

Returns

Return type: string