protected CustomBioDescription(string name) { var index = BIO_get_new_index(); _methodPointer = BIO_meth_new(index, name); _write = new WriteDelegate(Write); _read = new ReadDelegate(Read); _create = new CreateDelegate(Create); _destroy = new DestroyDelegate(Destroy); _control = new ControlDelegate(Control); BIO_meth_set_write(_methodPointer, _write); BIO_meth_set_read(_methodPointer, _read); BIO_meth_set_ctrl(_methodPointer, _control); BIO_meth_set_create(_methodPointer, _create); BIO_meth_set_destroy(_methodPointer, _destroy); }
public static void BIO_meth_set_destroy(BIO_METHOD biom, DestroyDelegate method) { var returnCode = Internal_BIO_meth_set_destroy(biom, method); ThrowOnErrorReturnCode(returnCode); }
private static extern int Internal_BIO_meth_set_destroy(BIO_METHOD biom, DestroyDelegate method);
internal static void BIO_meth_set_ctrl(BIO_METHOD biom, ControlDelegate controlMethod) { var result = Internal_BIO_meth_set_ctrl(biom, controlMethod); ThrowOnErrorReturnCode(result); }
private static extern int Internal_BIO_meth_set_ctrl(BIO_METHOD biom, ControlDelegate controlMethod);
internal static extern void BIO_meth_free(BIO_METHOD biom);
public static void BIO_meth_set_create(BIO_METHOD biom, CreateDelegate method) { var returnCode = Internal_BIO_meth_set_create(biom, method); ThrowOnErrorReturnCode(returnCode); }
private static extern int Internal_BIO_meth_set_create(BIO_METHOD biom, CreateDelegate method);
public static extern BIO BIO_new(BIO_METHOD type);
private static extern int Internal_BIO_meth_set_read(BIO_METHOD biom, ReadDelegate method);