Function allocUnsafe

  • Allocate a new Uint8Array without zeroing the bytes.

    This can be 3.5x faster than new Uint8Array(size), but if you send uninitialized memory to your users (even unintentionally), it can potentially leak anything recently in memory.

    Parameters

    • size: number

    Returns Uint8Array

  • Allocate a new Uint8Array without zeroing the bytes.

    This can be 3.5x faster than new Uint8Array(size), but if you send uninitialized memory to your users (even unintentionally), it can potentially leak anything recently in memory.

    Parameters

    • size: number

    Returns Uint8Array

Generated using TypeDoc