System.ByteMatcher.AddMapping C# (CSharp) Method

AddMapping() public method

public AddMapping ( TermInfoStrings key, byte val ) : void
key TermInfoStrings
val byte
return void
		public void AddMapping (TermInfoStrings key, byte [] val)
		{
			if (val.Length == 0)
				return;

			map [val] = key;
			starts [(int) val [0]] = true;
		}

Usage Example

Esempio n. 1
0
        void AddStringMapping(TermInfoStrings s)
        {
            byte [] bytes = reader.GetStringBytes(s);
            if (bytes == null)
            {
                return;
            }

            rootmap.AddMapping(s, bytes);
        }
All Usage Examples Of System.ByteMatcher::AddMapping