src/ros_msg_utils/lib/base_serialize.js
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;
}
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;
}
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 ; }
Specialized array serialization for UInt8 Arrays
Specialized array serialization for UInt8 Arrays