From 842ae06ae82d393a57f177705218a5a55c0d6029 Mon Sep 17 00:00:00 2001 From: Mattia Natali Date: Sun, 12 Mar 2023 15:01:36 +0100 Subject: [PATCH] Fix compilation casting --- lib/src/kdbx_var_dictionary.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/src/kdbx_var_dictionary.dart b/lib/src/kdbx_var_dictionary.dart index e22765e..ee8724c 100644 --- a/lib/src/kdbx_var_dictionary.dart +++ b/lib/src/kdbx_var_dictionary.dart @@ -20,37 +20,37 @@ class ValueType { final Decoder decoder; final Encoder? encoder; - static final typeUInt32 = ValueType( + static final typeUInt32 = ValueType( 0x04, (reader, _) => reader.readUint32(), (writer, value) => writer.writeUint32(value, writer._lengthWriter()), ); - static final typeUInt64 = ValueType( + static final typeUInt64 = ValueType( 0x05, (reader, _) => reader.readUint64(), (writer, value) => writer.writeUint64(value, writer._lengthWriter()), ); - static final typeBool = ValueType( + static final typeBool = ValueType( 0x08, (reader, _) => reader.readUint8() != 0, (writer, value) => writer.writeUint8(value ? 1 : 0, writer._lengthWriter()), ); - static final typeInt32 = ValueType( + static final typeInt32 = ValueType( 0x0C, (reader, _) => reader.readInt32(), (writer, value) => writer.writeInt32(value, writer._lengthWriter()), ); - static final typeInt64 = ValueType( + static final typeInt64 = ValueType( 0x0D, (reader, _) => reader.readInt64(), (writer, value) => writer.writeInt64(value, writer._lengthWriter()), ); - static final typeString = ValueType( + static final typeString = ValueType( 0x18, (reader, length) => reader.readString(length), (writer, value) => writer.writeString(value, writer._lengthWriter()), ); - static final typeBytes = ValueType( + static final typeBytes = ValueType( 0x42, (reader, length) => reader.readBytes(length), (writer, value) => writer.writeBytes(value, writer._lengthWriter()),