Skip to content

Commit 74b6013

Browse files
committed
Add hts_crc32 function
1 parent 3974457 commit 74b6013

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/hts/libhts/hts.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,5 +467,11 @@ module LibHTS
467467
:hts_md5_destroy,
468468
[:pointer],
469469
:void
470+
471+
# Computes CRC32 for a buffer with an initial crc value
472+
attach_function \
473+
:hts_crc32,
474+
%i[uint32 pointer size_t],
475+
:uint32
470476
end
471477
end

0 commit comments

Comments
 (0)