src/ros_msg_utils/lib/base_deserialize.js
function UInt8ArrayDeserializer(buffer, bufferOffset, arrayLen=null) {
  if (arrayLen === null || arrayLen < 0) {
    arrayLen = getArrayLen(buffer, bufferOffset);
  }

  const array = buffer.slice(bufferOffset[0], bufferOffset[0] + arrayLen);
  bufferOffset[0] += arrayLen;
  return array;
}
function UInt8ArrayDeserializer(buffer, bufferOffset, arrayLen=null) {
  if (arrayLen === null || arrayLen < 0) {
    arrayLen = getArrayLen(buffer, bufferOffset);
  }

  const array = buffer.slice(bufferOffset[0], bufferOffset[0] + arrayLen);
  bufferOffset[0] += arrayLen;
  return array;
}
function UInt8ArrayDeserializer ( buffer , bufferOffset , arrayLen = null ) { if ( arrayLen === null || arrayLen < 0 ) { arrayLen = getArrayLen ( buffer , bufferOffset ) ; } const array = buffer . slice ( bufferOffset [ 0 ] , bufferOffset [ 0 ] + arrayLen ) ; bufferOffset [ 0 ] += arrayLen ; return array ; }
Specialized array deserialization for UInt8 Arrays
We return the raw buffer when deserializing uint8 arrays because it's much faster
Specialized array deserialization for UInt8 Arrays We return the raw buffer when deserializing uint8 arrays because it s much faster