Buffer handling for DNS packets
A t is an externally managed Bigarray
t
create ?alloc b will allocate a buffer of b bytes, where the maximum size is 4096 bytes. If alloc is supplied then it will be used to allocate the memory page instead of the default malloc-based Bigarray create function.
create ?alloc b
b
alloc
malloc