code: public byte[] toByteArray() {
          final byte[] b = new byte[this.len];
          if (this.len > 0) {
              System.arraycopy(this.array, 0, b, 0, this.len);
          }
          return b;
      }
docs: Converts the content of this buffer to an array of bytes.
  
  @return byte array