code: protected int getBytesLeft()
                      throws ObjectManagerException {
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(this,
                          cclass,
                          "getSerializedByteCount");
  
          int bytesLeft;
          if (bufferCursor == 0)
              bytesLeft = totalSize - bufferByteCursor;
          else
              bytesLeft = totalSize - overhead - bufferByteCursor;
  
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.exit(this,
                         cclass,
                         "getBytesLeft",
                         "return=" + bytesLeft);
          return bytesLeft;
      }
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 in the serialized LogRecord.
  @throws ObjectManagerException