Example #1
0
func (b *writeBio) MakeCBIO() *C.BIO {
	rv := C.BIO_new(C.BIO_s_writeBio())
	rv.ptr = unsafe.Pointer(b)
	return rv
}
Example #2
0
File: bio.go Project: Machyne/mongo
func (b *writeBio) MakeCBIO() *C.BIO {
	rv := C.BIO_new(C.BIO_s_writeBio())
	token := writeBioMapping.Add(unsafe.Pointer(b))
	rv.ptr = unsafe.Pointer(token)
	return rv
}