bigloo.input_file_port.rgc_size_fill_file_buffer C# (CSharp) Method

rgc_size_fill_file_buffer() private method

private rgc_size_fill_file_buffer ( int bufpose, int size ) : bool
bufpose int
size int
return bool
        bool rgc_size_fill_file_buffer( int  bufpose,
                                    int  size )
        {
            int          nbread= _in.Read( buffer, bufpose-1, size );

              if (nbread == 0)
            eof= true;
              else
            bufpose+= nbread;

              this.bufpos= bufpose;

              if (0 < bufpose)
              {
            buffer[bufpose-1]= 0;
            return true;
              }

              return false;
        }