encode_ULONG function

dynamic encode_ULONG(
  1. dynamic v
)

Convert a 32-bit unsigned integer to a list of 4 bytes. @param {number} @returns {Array}

Implementation

encode_ULONG(v) {
    return [(v >> 24) & 0xFF, (v >> 16) & 0xFF, (v >> 8) & 0xFF, v & 0xFF];
}