bigloo.foreign.bgl_input_string C# (CSharp) Method

bgl_input_string() public static method

public static bgl_input_string ( binary_port p, int len ) : byte[]
p binary_port
len int
return byte[]
        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;
        }
foreign