GetByte() 공개 메소드

public GetByte ( ) : byte
리턴 byte
예제 #1
0
 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));
 }
예제 #3
0
        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;
        }