mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
Adds documentation and reformats names
This commit is contained in:
1 parent
4d2fb8a781
commit
236c7277e0
2 files changed
+15
No files matched your search
@@ -7,6 +7,13 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// ByteSlice builds a byte Slice over a C pointer returned by a
|
||||
// C function.
|
||||
// The C pointer has to be passed as an unsafe.Pointer
|
||||
// and the size of the pointed memery area has to be
|
||||
// indicated through the size parameter.
|
||||
// No memory allocation is done by that function. It
|
||||
// just consists in mapping a Go object too a C one.
|
||||
func ByteSlice(pointer unsafe.Pointer, size int) []byte {
|
||||
var s []byte
|
||||
|
||||
|
||||
Reference in new issue
Block a user