24-bit integer serialization for Node.js