ErrorCode
auto h = new HiBON; h["version_test"] = 2; const doc = Document(h); uint ver = 10; // set the version equal to something else since current ver is 0 int rt = tagion_document_get_version(&doc.data[0], doc.data.length, &ver); assert(rt == ErrorCode.none); import tagion.hibon.HiBONBase : HIBON_VERSION; assert(ver == HIBON_VERSION);
Return the version of the document