Help language development. Donate to The Perl Foundation
NativeHelpers::iovec - An implementation of the iovec struct
use NativeHelpers::iovec; my iovec $iov .= new("Hello World"); say $iov.elems; # 11
NativeHelpers::iovec is an implementation of the iovec struct. It supports creating iovecs from Blob and Str objects, or from a Pointer and a number of bytes.
Returns the size of the buffer in bytes
Returns a void Pointer to the start of the memory buffer
Frees the allocated memory
Returns a new Blob with a copy of the memory buffer
Returns a new Str containing the decoded memory buffer
Create a new iovec containing the encoded string
Create a new iovec containing the contents of the Blob
Create a new iovec with the given Pointer and size
Travis Gibson [email protected]
Copyright 2020 Travis Gibson
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.