Matthias Andreas Benkard | 4e8423d | 2021-12-19 22:56:09 +0100 | [diff] [blame^] | 1 | package eu.mulk.jgvariant.ostree; |
| 2 | |
| 3 | import eu.mulk.jgvariant.core.Decoder; |
| 4 | |
| 5 | /** |
| 6 | * Reference: (embedded in other data types, e.g. {@code |
| 7 | * ostree-core.h#OSTREE_DIRMETA_GVARIANT_STRING}, {@code |
| 8 | * ostree-core.h#OSTREE_FILEMETA_GVARIANT_STRING}) |
| 9 | */ |
| 10 | public record Xattr(ByteString name, ByteString value) { |
| 11 | |
| 12 | private static final Decoder<Xattr> DECODER = |
| 13 | Decoder.ofStructure(Xattr.class, ByteString.decoder(), ByteString.decoder()); |
| 14 | |
| 15 | public static Decoder<Xattr> decoder() { |
| 16 | return DECODER; |
| 17 | } |
| 18 | } |