Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public static void BIO_meth_set_destroy(BIO_METHOD biom, DestroyDelegate method)
        {
            var returnCode = Internal_BIO_meth_set_destroy(biom, method);

            ThrowOnErrorReturnCode(returnCode);
        }
Ejemplo n.º 3
0
 private static extern int Internal_BIO_meth_set_destroy(BIO_METHOD biom, DestroyDelegate method);
Ejemplo n.º 4
0
        internal static void BIO_meth_set_ctrl(BIO_METHOD biom, ControlDelegate controlMethod)
        {
            var result = Internal_BIO_meth_set_ctrl(biom, controlMethod);

            ThrowOnErrorReturnCode(result);
        }
Ejemplo n.º 5
0
 private static extern int Internal_BIO_meth_set_ctrl(BIO_METHOD biom, ControlDelegate controlMethod);
Ejemplo n.º 6
0
 internal static extern void BIO_meth_free(BIO_METHOD biom);
Ejemplo n.º 7
0
        public static void BIO_meth_set_create(BIO_METHOD biom, CreateDelegate method)
        {
            var returnCode = Internal_BIO_meth_set_create(biom, method);

            ThrowOnErrorReturnCode(returnCode);
        }
Ejemplo n.º 8
0
 private static extern int Internal_BIO_meth_set_create(BIO_METHOD biom, CreateDelegate method);
Ejemplo n.º 9
0
 public static extern BIO BIO_new(BIO_METHOD type);
Ejemplo n.º 10
0
 private static extern int Internal_BIO_meth_set_read(BIO_METHOD biom, ReadDelegate method);