Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The unit of length in toBuffer(endian, length) is unclear #298

@TimDaub

Description

@TimDaub

see readme.md:

a.toBuffer(endian, length) - convert to Node.js Buffer (if available). For compatibility with browserify and similar tools, use this instead: a.toArrayLike(Buffer, endian, length)

But what unit is length? My guess would be either bytes or bits?

Edit: Looking at the code it's probably bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions