interface TVariant<T> {
    arrayType: VariantArrayType;
    dataType: DataType;
    dimensions: null | number[];
    schema: IStructuredTypeSchema;
    value: T;
    applyOnAllFields<T>(func: Func1<T>, data: T): void;
    binaryStoreSize(): number;
    clone(): Variant;
    decode(stream: BinaryStream): void;
    decodeDebug(stream: BinaryStream, options: DecodeDebugOptions): void;
    encode(stream: OutputBinaryStream): void;
    explore(): string;
    isValid(): boolean;
    toJSON(): any;
    toString(): string;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

arrayType: VariantArrayType
dataType: DataType
dimensions: null | number[]
schema: IStructuredTypeSchema
value: T

Methods

  • Type Parameters

    • T

    Parameters

    • func: Func1<T>
    • data: T

    Returns void

  • Calculate the required size to store this object in a binary stream.

    Returns number

  • Returns Variant

  • Decode the object from the binary stream.

    Parameters

    Returns void

  • Parameters

    Returns void

  • Encode the object to the binary stream.

    Parameters

    • stream: OutputBinaryStream

    Returns void

  • Returns string

  • verify that all object attributes values are valid according to schema

    Returns boolean

  • Returns any

  • Returns string