Ejemplo n.º 1
0
 public static Object output_obj( binary_port p, Object obj )
 {
     return p.output_obj( obj );
 }
Ejemplo n.º 2
0
 public static Object close_binary_port( binary_port p )
 {
     return p.close();
 }
Ejemplo n.º 3
0
 public static Object input_obj( binary_port p )
 {
     return p.input_obj();
 }
Ejemplo n.º 4
0
 public static bool BINARY_PORT_OUTP( binary_port p )
 {
     return p.stream.CanWrite;
 }
Ejemplo n.º 5
0
 public static Object BINARY_PORT_TO_FILE( binary_port p )
 {
     return p.stream;
 }
Ejemplo n.º 6
0
 public static int bgl_output_string( binary_port p, byte[] buf )
 {
     p.stream.Write( buf, 0, buf.Length );
     return buf.Length;
 }
Ejemplo n.º 7
0
 public static bool BINARY_PORT_INP( binary_port p )
 {
     return p.stream.CanRead;
 }
Ejemplo n.º 8
0
 public static Object BGL_OUTPUT_CHAR( binary_port p, byte c)
 {
     p.stream.WriteByte( c );
     return p;
 }
Ejemplo n.º 9
0
        public static byte[] bgl_input_string( binary_port p, int len )
        {
            byte[] buf = new byte[ len ];
            int l = p.stream.Read( buf, 0, buf.Length );

            if( l < len )
               return bgl_string_shrink( buf, l );
            else
               return buf;
        }
Ejemplo n.º 10
0
 public static int bgl_input_fill_string( binary_port p, byte[] buf )
 {
     return p.stream.Read( buf, 0, buf.Length );
 }
Ejemplo n.º 11
0
 public static int BGL_INPUT_CHAR( binary_port p )
 {
     return p.stream.ReadByte();
 }
Ejemplo n.º 12
0
 public static Object bgl_flush_binary_port( binary_port p )
 {
     return p.flush();
 }