예제 #1
0
파일: MySqlBit.cs 프로젝트: BjkGkh/R106
        public IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull)
        {
            this.isNull = isNull;
              if (isNull)
            return this;

              if (length == -1)
            length = packet.ReadFieldLength();

              if (ReadAsString)
            mValue = UInt64.Parse(packet.ReadString(length));
              else
            mValue = (UInt64)packet.ReadBitValue((int)length);
              return this;
        }