Hi. Now I trying to write a large struct ( 2GB aprox. ) and then read only an attribute of it. I write it doing something like:
*object_capnp.Object(all_the_data).write( open(file, "w+b") )* Then, when the struct is on the file, I am trying to read it: If I read it doing *object_capnp.Object().read(file)* all the file is loaded on memory. If I read it using the random access i do: *message = capnp._StreamFdMessageReader(file)* *object = message.get_root( object_capnp.Object )* But then the next error is raised: *Traceback (most recent call last): File "<stdin>", line 1, in <module> File "capnp/lib/capnp.pyx", line 3746, in capnp.lib.capnp._MessageReader.get_rootcapnp.lib.capnp.KjException: capnp/layout.c++:2165: failed: expected ref->kind() == WirePointer::STRUCT; Message contains non-struct pointer where struct pointer was expected.* Whats the problem with that? I'm reading these docs: *https://capnproto.github.io/pycapnp/capnp.html#capnp._StreamFdMessageReader* Thanks for the help. -Josemi -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/754db848-e9ba-4f51-b13a-4ea8ae0c3ad2n%40googlegroups.com.