class FieldWriterInt8ValField<T>
        extends FieldWriterInt8<T> {
    FieldWriterInt8ValField(
            String name,
            int ordinal,
            long features,
            String format,
            String label,
            Field field
    ) {
        super(name, ordinal, features, format, label, byte.class, field, null);
    }

    @Override
    public Object getFieldValue(T object) {
        return getFieldValueByte(object);
    }

    public byte getFieldValueByte(T object) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean write(JSONWriter jsonWriter, T object) {
        byte value = getFieldValueByte(object);
        writeInt8(jsonWriter, value);
        return true;
    }

    @Override
    public void writeValue(JSONWriter jsonWriter, T object) {
        byte value = getFieldValueByte(object);
        jsonWriter.writeInt32(value);
    }
}

        if (object == null) {
            throw new JSONException("field.get error, " + fieldName);
        }

        try {
            byte value;
            if (fieldOffset != -1) {
                value = UNSAFE.getByte(object, fieldOffset);
            } else {
                value = field.getByte(object);
            }
            return value;
        } catch (IllegalArgumentException | IllegalAccessException e) {
            throw new JSONException("field.get error, " + fieldName, e);
        }
    
<methods>public boolean write(com.alibaba.fastjson2.JSONWriter, T) ,public void writeValue(com.alibaba.fastjson2.JSONWriter, T) <variables>