code: public String getHexEncodedBytes() {
          buffer.b().flip();
          byte bytes[] = new byte[buffer.b().remaining()];
          buffer.b().get(bytes);
          String hex = Encoder.hexEncode(bytes);
          buffer.discard();
          return hex;
      }
docs: Get a ascii-string-safe version of the binary value using a
  hex encoding.
  
  @return A hex-encoded string value representing the serialized
  objects.