Ejemplo n.º 1
0
        public override void invoke_flush_hook( bigloo.bint size )
        {
            if( fhook is procedure ) {
            Object s = ((procedure)fhook).funcall2( this, size );

            if( s is byte[] ) {
               sendbuffer( (byte [])s, 0, ((byte [])s).Length );
            } else {
               if( s is bigloo.bint &&
               flushbuf is byte[] &&
               bigloo.foreign.CINT( (bigloo.bint)s ) <= ((byte[])flushbuf).Length ) {
              sendbuffer( (byte[])flushbuf,
                  0,
                  bigloo.foreign.CINT( (bigloo.bint)s ) );
               }
            }
             }
        }
Ejemplo n.º 2
0
 public lib( bigloo.procedure p )
 {
     Console.Out.WriteLine( "C#: constructor..." );
       proc = p;
 }
Ejemplo n.º 3
0
 public abstract void invoke_flush_hook( bigloo.bint size );