docs: public final byte[] toByteArray()
      {
          LinkedBuffer node = head;
          int offset = 0, len;
          final byte[] buf = new byte[size];
          do
          {
              if ((len = node.offset - node.start) > 0)
              {
                  System.arraycopy(node.buffer, node.start, buf, offset, len);
                  offset += len;
              }
          } while ((node = node.next) != null);
  
          return buf;
      }