private void writeValue(Value value, ByteBuffer out) {
        out.putShort((short) 8);
        out.put((byte) 0);
        out.put((byte) value.type);
        if (value.type == ArscParser.TYPE_STRING) {
            out.putInt(strTable.get(value.raw).index);
        } else {
            out.putInt(value.data);
        }
    }
Write pkgs to an arsc file

@author bob
@see ArscParser
android/third_party/apkbuilder/src/main/java/pxb/android/arsc/ArscWriter.java