Julia does check a UTF8String for proper encoding so I guess I could return a Vector{UInt8} instead.
Right now I am having trouble understanding the layout of a union. It seems that the vtable element is either 0 or an soffset_t to a uint8_t that is the 1-based index into the types in the union. What is not clear to me is how I get the offset to the instance of that type, once I know the type.
declares TypeMetadata as a union of four table types: CategoryMetadata, TimestampMetadata, DateMetadata, and TimeMetaData. Within a Column table, the 'metadata' member is of this union.
If in the vtable for a Column I find that the metadata voffset_t is nonzero, it seems it gives the offset to a uint8_t which indicates the type of table from the union. How do I find the offset to the table's contents, once I know its type?
I hope this question makes sense. I can provide a reproducible example if that would help