Esempio n. 1
0
 public static Object output_obj( binary_port p, Object obj )
 {
     return p.output_obj( obj );
 }
Esempio n. 2
0
 public static Object close_binary_port( binary_port p )
 {
     return p.close();
 }
Esempio n. 3
0
 public static Object input_obj( binary_port p )
 {
     return p.input_obj();
 }
Esempio n. 4
0
 public static bool BINARY_PORT_OUTP( binary_port p )
 {
     return p.stream.CanWrite;
 }
Esempio n. 5
0
 public static Object BINARY_PORT_TO_FILE( binary_port p )
 {
     return p.stream;
 }
Esempio n. 6
0
 public static int bgl_output_string( binary_port p, byte[] buf )
 {
     p.stream.Write( buf, 0, buf.Length );
     return buf.Length;
 }
Esempio n. 7
0
 public static bool BINARY_PORT_INP( binary_port p )
 {
     return p.stream.CanRead;
 }
Esempio n. 8
0
 public static Object BGL_OUTPUT_CHAR( binary_port p, byte c)
 {
     p.stream.WriteByte( c );
     return p;
 }
Esempio 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;
        }
Esempio n. 10
0
 public static int bgl_input_fill_string( binary_port p, byte[] buf )
 {
     return p.stream.Read( buf, 0, buf.Length );
 }
Esempio n. 11
0
 public static int BGL_INPUT_CHAR( binary_port p )
 {
     return p.stream.ReadByte();
 }
Esempio n. 12
0
 public static Object bgl_flush_binary_port( binary_port p )
 {
     return p.flush();
 }