Use u8 for TLV type when writing and reading our own structs