Documentation ¶
Index ¶
- func CopySlice[TDst any, TSrc any](dst []TDst, src []TSrc)
- func Error(cerr *C.char) error
- func ReadSlice[TDst any](r io.Reader, dst []TDst) (int, error)
- func ReadSliceAt[TDst any](r io.ReaderAt, dst []TDst, offset int64) (int, error)
- func ReadStruct[TDst any](r io.Reader, dst *TDst) (int, error)
- func ReadStructAt[TDst any](r io.ReaderAt, dst *TDst, offset int64) (int, error)
- func WriteSlice[TSrc any](w io.Writer, src []TSrc) (int, error)
- func WriteSliceAt[TSrc any](w io.WriterAt, src []TSrc, offset int64) (int, error)
- func WriteStruct[TSrc any](w io.Writer, src *TSrc) (int, error)
- func WriteStructAt[TSrc any](w io.WriterAt, src *TSrc, offset int64) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopySlice ¶
Copy a block of memory from Go to C. To copy a Go string to C, cast the string to []byte.
func Error ¶
Consume a C heap allocated char* and return it as a Go error. Before returning, free the C char*. If the input is NULL, then return nil.
func ReadStructAt ¶
func WriteSliceAt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.