triple.pxd 405 B

123456789101112131415161718
  1. from lakesuperior.cy_include cimport cytpl as tpl
  2. from lakesuperior.store.ldp_rs.term cimport Buffer, Term
  3. # Triple of Term structs.
  4. ctypedef struct Triple:
  5. Term *s
  6. Term *p
  7. Term *o
  8. # Triple of serialized terms.
  9. ctypedef struct BufferTriple:
  10. Buffer *s
  11. Buffer *p
  12. Buffer *o
  13. #cdef:
  14. # int serialize(tuple trp, tpl.tpl_bin *data) except -1
  15. # tuple deserialize(tpl.tpl_bin data)