Skip to content

function write32BitInt(dest, num) {} 怎么换成24位 #1

@jinjiabin94

Description

@jinjiabin94

怎么换成24位
function write32BitInt(dest, num) {
dest.push(num & 0xff);
dest.push((num & 0xff00) >> 8);
dest.push((num & 0xff0000) >> 16);
dest.push(num >> 24);
}

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