public GetStringBytes ( TermInfoStrings tstr ) : byte[] | ||
tstr | TermInfoStrings | |
return | byte[] |
public byte [] GetStringBytes (TermInfoStrings tstr)
{
int x = (int) tstr;
if (x < 0 || tstr >= TermInfoStrings.Last || x > strOffsets)
return null;
int offset = booleansOffset + boolSize;
if ((offset % 2) == 1)
offset++;
offset += numSize * 2;
int off2 = GetInt16 (buffer, offset + (int) tstr * 2);
if (off2 == -1)
return null;
return GetStringBytes (buffer, offset + strOffsets * 2 + off2);
}
TermInfoReader::GetStringBytes ( byte buffer, int offset ) : byte[] |
void AddStringMapping(TermInfoStrings s) { byte [] bytes = reader.GetStringBytes(s); if (bytes == null) { return; } rootmap.AddMapping(s, bytes); }