docs: int decode( byte[] buffer, int bufferIndex ) {
          int start = headerStart = bufferIndex;
  
          bufferIndex += readHeaderWireFormat( buffer, bufferIndex );
          bufferIndex += readAndXWireFormat( buffer, bufferIndex );
  
          length = bufferIndex - start;
          return length;
      }