classicborne-server-protocol
    Preparing search index...

    Class CodePage437

    Namespace related to Code Page 437 character encoding.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    mapping: string[] = ...

    Character mapping of Code Page 437. 0x00 and 0xff are spaces.

    Methods

    • Converts a buffer of bytes encoded in Code Page 437 to a string.

      Parameters

      • buffer: Buffer<ArrayBufferLike>

        A buffer with Code Page 437 encoded data.

      Returns string

    • Converts a string to a buffer of bytes encoded in Code Page 437. If characters unknown to Code Page 437 are present in the string, they will be converted into ? characters.

      Parameters

      • str: string

      Returns Buffer<ArrayBufferLike>