|
|
@ -145,7 +145,7 @@ class InnerHeaderField implements HeaderFieldBase<InnerHeaderFields> { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
final InnerHeaderFields field; |
|
|
|
final InnerHeaderFields field; |
|
|
|
final Uint8List? bytes; |
|
|
|
final Uint8List bytes; |
|
|
|
|
|
|
|
|
|
|
|
String get name => field.toString(); |
|
|
|
String get name => field.toString(); |
|
|
|
} |
|
|
|
} |
|
|
@ -323,10 +323,10 @@ class KdbxHeader { |
|
|
|
void _writeInnerField(WriterHelper writer, InnerHeaderField value) { |
|
|
|
void _writeInnerField(WriterHelper writer, InnerHeaderField value) { |
|
|
|
final field = value.field; |
|
|
|
final field = value.field; |
|
|
|
_logger.finer( |
|
|
|
_logger.finer( |
|
|
|
'Writing header $field (${field.index}) (${value.bytes!.lengthInBytes})'); |
|
|
|
'Writing header $field (${field.index}) (${value.bytes.lengthInBytes})'); |
|
|
|
writer.writeUint8(field.index); |
|
|
|
writer.writeUint8(field.index); |
|
|
|
_writeFieldSize(writer, value.bytes!.lengthInBytes); |
|
|
|
_writeFieldSize(writer, value.bytes.lengthInBytes); |
|
|
|
writer.writeBytes(value.bytes!); |
|
|
|
writer.writeBytes(value.bytes); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void _writeField(WriterHelper writer, HeaderFields field) { |
|
|
|
void _writeField(WriterHelper writer, HeaderFields field) { |
|
|
|