IMySqlValue IMySqlValue.ReadValue(MySqlStream stream, long length, bool nullVal) { MySqlBinary binary; if (nullVal) { binary = new MySqlBinary(this.type, true); } else { if (length == -1L) { length = stream.ReadFieldLength(); } byte[] buffer = new byte[length]; stream.Read(buffer, 0, (int)length); binary = new MySqlBinary(this.type, buffer); } binary.IsGuid = this.IsGuid; return(binary); }
IMySqlValue IMySqlValue.ReadValue(MySqlStream stream, long length, bool nullVal) { MySqlBinary binary; if (nullVal) { binary = new MySqlBinary(this.type, true); } else { if (length == -1L) { length = stream.ReadFieldLength(); } byte[] buffer = new byte[length]; stream.Read(buffer, 0, (int) length); binary = new MySqlBinary(this.type, buffer); } binary.IsGuid = this.IsGuid; return binary; }