Add to_segment_views for zero-copy serialization (#405)

Co-authored-by: bigtailfox <leoherz.liu@gmail.com>
This commit is contained in:
leoherz.liu
2026-07-04 07:45:34 +08:00
committed by GitHub
parent 5c1f6b2fe9
commit 40189f91fc
4 changed files with 177 additions and 2 deletions

View File

@@ -82,6 +82,7 @@ cdef class _DynamicStructBuilder:
cdef _check_write(self)
cpdef to_bytes(_DynamicStructBuilder self)
cpdef to_segments(_DynamicStructBuilder self)
cpdef to_segment_views(_DynamicStructBuilder self)
cpdef _to_bytes_packed_helper(_DynamicStructBuilder self, word_count)
cpdef to_bytes_packed(_DynamicStructBuilder self)