public IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull) { this.isNull = isNull; if (isNull) { return(this); } if (length == -1) { length = packet.ReadFieldLength(); } mValue = (UInt64)packet.ReadBitValue((int)length); return(this); }
public IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull) { this.isNull = isNull; if (isNull) { return(this); } if (length == -1L) { length = packet.ReadFieldLength(); } if (this.ReadAsString) { this.mValue = ulong.Parse(packet.ReadString(length)); } else { this.mValue = packet.ReadBitValue((int)length); } return(this); }
public IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull) { this.IsNull = isNull; if (isNull) { return(this); } if (length == -1) { length = packet.ReadFieldLength(); } if (ReadAsString) { _value = UInt64.Parse(packet.ReadString(length), CultureInfo.InvariantCulture); } else { _value = (UInt64)packet.ReadBitValue((int)length); } return(this); }