@SuppressWarnings({ "unchecked", "rawtypes" })
    public static Object get(TBase<?, ?> struct, TFieldIdEnum field) {
        final Object value = ((TBase) struct).getFieldValue(field);
        if (value instanceof byte[]) {
            return ByteBuffer.wrap((byte[]) value);
        } else {
            return value;
        }
    }
Gets the value of the specified struct field.
thrift/thrift0.13/src/main/java/com/linecorp/armeria/internal/common/thrift/ThriftFieldAccess.java