term.pxd 593 B

123456789101112131415161718192021222324
  1. from lakesuperior.cy_include cimport cytpl as tpl
  2. cdef:
  3. #unsigned char *pack_data
  4. unsigned char term_type
  5. unsigned char *pack_fmt
  6. unsigned char *term_data
  7. unsigned char *term_datatype
  8. unsigned char *term_lang
  9. #size_t pack_size
  10. struct IdentifierTerm:
  11. char type
  12. unsigned char *data
  13. struct LiteralTerm:
  14. char type
  15. unsigned char *data
  16. unsigned char *datatype
  17. unsigned char *lang
  18. int serialize(term, unsigned char **pack_data, size_t *pack_size) except -1
  19. deserialize(unsigned char *data, size_t size)