code: function UInt8ArraySerializer(array, buffer, bufferOffset, specArrayLen=null) {
    const arrLen = array.length;
  
    if (specArrayLen === null || specArrayLen < 0) {
      bufferOffset = buffer.writeUInt32LE(arrLen, bufferOffset, true);
    }
  
    buffer.set(array, bufferOffset);
    return bufferOffset + arrLen;
  }
docs: Specialized array serialization for UInt8 Arrays