@chickenjdk/byteutils
    Preparing search index...

    Function addDefaultEndianness

    • Extend the provided readable/writable buffer to set a default endianness

      Type Parameters

      • T extends { prototype: { isLe: boolean }; new (...args: any[]): any }

      Parameters

      • buffer: T

        The buffer to extend

      • isLe: boolean

        If to make the default endianness Little Endian

      Returns { prototype: __type<any>; new (...args: any[]): __type<T> } & T