bigloo.foreign.rgc_buffer_symbol C# (CSharp) Method

rgc_buffer_symbol() public static method

public static rgc_buffer_symbol ( input_port p ) : symbol
p input_port
return symbol
        public static symbol rgc_buffer_symbol( input_port p )
        {
            int start= p.matchstart;
            int stop= p.matchstop;
            int n= stop - start;
            byte[] name= new byte[n];

            for ( int i= 0 ; i < n ; ++i, ++start )
               name[i]= (byte)(p.buffer[start] & 0xFF);

            return symbol.make_symbol( name );
        }
foreign