presto-record-decoder/src/main/java/io/prestosql/decoder/FieldValueProviders.java/FieldValueProviders/bytesValueProvider
class FieldValueProviders:    public static FieldValueProvider bytesValueProvider(byte[] value)
    {
        return new FieldValueProvider()
        {
            @Override
            public Slice getSlice()
            {
                return wrappedBuffer(value);
            }

            @Override
            public boolean isNull()
            {
                return value == null || value.length == 0;
            }
        };
    }