code: protected int getBytesLeft()
                      throws ObjectManagerException {
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(this,
                          cclass,
                          "getBytesLeft");
  
          // Add up the total number of bytes to write.    
          int totalBytes = -bufferByteCursor; // We have already given up these bytes.
          for (int i = bufferCursor; i < buffers.length; i++) {
              totalBytes = totalBytes + buffers[i].getCount();
          } // for ... buffers.length.   
  
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.exit(this, cclass
                         , "getBytesLeft"
                         , "returns totalBytes=" + totalBytes + "(int)"
                              );
          return totalBytes;
      }
docs: Gives back the number of bytes left to write if we were to complete the writing in a single part. If we need to
  write more than one part then we will need extra bytes to describe this.
  
  @return int the number of bytes left in the serialized LogRecord.
  @throws ObjectManagerException