Пример #1
0
func (b *readBio) MakeCBIO() *C.BIO {
	rv := C.BIO_new(C.BIO_s_readBio())
	rv.ptr = unsafe.Pointer(b)
	return rv
}
Пример #2
0
func (b *readBio) MakeCBIO() *C.BIO {
	b.buf = bufPool.Get()
	rv := C.BIO_new(C.BIO_s_readBio())
	rv.ptr = unsafe.Pointer(b)
	return rv
}
Пример #3
0
func (b *readBio) MakeCBIO() *C.BIO {
	rv := C.BIO_new(C.BIO_s_readBio())
	token := readBioMapping.Add(unsafe.Pointer(b))
	rv.ptr = unsafe.Pointer(token)
	return rv
}