Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BytesConverter ¶
type BytesConverter struct {
// contains filtered or unexported fields
}
func NewBytesConverter ¶
func NewBytesConverter() *BytesConverter
func (*BytesConverter) Extract ¶
func (converter *BytesConverter) Extract(lease int32) unsafe.Pointer
func (*BytesConverter) Release ¶
func (converter *BytesConverter) Release(lease int32)
func (*BytesConverter) ReleaseAll ¶
func (converter *BytesConverter) ReleaseAll()
Make sure only the caller own the converter or this would release someone's memory
func (*BytesConverter) UnsafeGoBytes ¶
Return a lease and []byte from C bytes (typically char*) which references the same memory of C bytes Call Release(lease) after you don't need the returned []byte
Click to show internal directories.
Click to hide internal directories.