Is there a generic way of converting from tuples/seq/strings/tables/... to an "object" that can be used for accessing memfiles.
Ideally, tell it the biggest size of string it needs to create, and it will take a type and convert it to an appropriate structure for storage,
e.g., the toBlob() functionality:
type
mySType = seq[string]
myOType = object
s: string
f: float
i: int
var
s1: mySType = @["fred","mary","bill"]
o1: myOType = myOType(s: "Some text", f: 23.437621, i: 42)
blob1 = toBlob(s1)
blob2 = toBlob(o1)
# now save blob1 and blob2 to a memfile