Class PalmDocMetadata

Metadata stored in the first record of a PalmDOC database.

Hierarchy

  • Serializable
    • PalmDocMetadata

Constructors

Properties

isCompressed: boolean = true

Whether the text is compressed.

numRecords: number = 0

Number of records used for storing text.

position: number = 0

Current reading position, as an offset into the uncompressed text.

textLength: number = 0

Uncompressed length of the text.

Methods

  • Deserializes a buffer into this value.

    Parameters

    • buffer: Buffer
    • Optionalopts: DeserializeOptions

    Returns number

    Number of bytes read.

  • Computes the serialized length of this value.

    Parameters

    • Optionalopts: SerializeOptions

    Returns number

  • Serializes this value into a buffer.

    Parameters

    • Optionalopts: SerializeOptions

    Returns Buffer

  • Creates a new instance of this value by deserializing from a buffer.

    Type Parameters

    • T extends Serializable

    Parameters

    • this: (new () => T)
        • new (): T
        • Returns T

    • buffer: Buffer
    • Optionalopts: DeserializeOptions

    Returns T