private string GetCharsText() { DiagnosticUtility.DebugAssert(_type == ValueHandleType.UTF8, ""); if (_length == 1 && _bufferReader.GetByte(_offset) == '1') { return("1"); } return(_bufferReader.GetString(_offset, _length)); }
string GetCharsText() { Fx.Assert(type == ValueHandleType.UTF8, ""); if (length == 1 && bufferReader.GetByte(offset) == '1') { return("1"); } return(bufferReader.GetString(offset, length)); }
public void SetValue(int offset, int length) { if (length == 0) { SetValue(PrefixHandleType.Empty); return; } if (length == 1) { byte ch = _bufferReader.GetByte(offset); if (ch >= 'a' && ch <= 'z') { SetValue(GetAlphaPrefix(ch - 'a')); return; } } _type = PrefixHandleType.Buffer; _offset = offset; _length = length; }