code: public byte[] getValueAsArray() {
          ByteBuffer buffer = getValue();
          byte[] result = new byte[buffer.remaining()];
          buffer.get(result);
          return result;
      }
docs: Get the bytes which represent the payload of this field, without the leading type tag and length header, as
  a newly-allocated byte array.
  
  @return a new byte array containing a copy of the bytes this field contains