buf.readUInt32LE(offset[, noAssert])
Reads an unsigned 32-bit integer from the Buffer at the specified offset
with specified endian format (readInt32BE()
returns big endian, readInt32LE()
returns little endian).
Setting noAssert
to true
skips validation of the offset
. This allows the offset
to be beyond the end of the Buffer.
Example:
const buf = Buffer.from([0x3, 0x4, 0x23, 0x42]); buf.readUInt32BE(0); // Returns: 0x03042342 console.log(buf.readUInt32LE(0)); // Returns: 0x42230403
Please login to continue.