fix build

This commit is contained in:
Christien Rioux 2024-05-09 10:54:52 -05:00
parent 627066dd27
commit ab4f05a347
15 changed files with 215 additions and 220 deletions

View file

@ -36,7 +36,7 @@ message DHTShortArray {
// Uses the same writer as this DHTList with SMPL schema
repeated veilid.TypedKey keys = 1;
// Item position index (uint8[256])
// Item position index (uint8[256./])
// Actual item location is:
// idx = index[n] + 1 (offset for header at idx 0)
// key = idx / stride
@ -50,16 +50,11 @@ message DHTShortArray {
// calculated through iteration
}
// DHTLog - represents an appendable/truncatable log collection of individual elements
// Header in subkey 0 of first key follows this structure
//
// stride = descriptor subkey count on first key - 1
// Subkeys 1..=stride on the first key are individual elements
// Subkeys 0..stride on the 'keys' keys are also individual elements
//
// Keys must use writable schema in order to make this list mutable
// DHTLog - represents a long ring buffer of elements utilizing a multi-level
// indirection table of DHTShortArrays.
message DHTLog {
// Other keys to concatenate
// Keys to concatenate
repeated veilid.TypedKey keys = 1;
// Back link to another DHTLog further back
veilid.TypedKey back = 2;

View file

@ -9,27 +9,27 @@ part of 'dht_record_pool.dart';
_$DHTRecordPoolAllocationsImpl _$$DHTRecordPoolAllocationsImplFromJson(
Map<String, dynamic> json) =>
_$DHTRecordPoolAllocationsImpl(
childrenByParent: json['childrenByParent'] == null
childrenByParent: json['children_by_parent'] == null
? const IMapConst<String, ISet<TypedKey>>({})
: IMap<String, ISet<Typed<FixedEncodedString43>>>.fromJson(
json['childrenByParent'] as Map<String, dynamic>,
json['children_by_parent'] as Map<String, dynamic>,
(value) => value as String,
(value) => ISet<Typed<FixedEncodedString43>>.fromJson(value,
(value) => Typed<FixedEncodedString43>.fromJson(value))),
parentByChild: json['parentByChild'] == null
parentByChild: json['parent_by_child'] == null
? const IMapConst<String, TypedKey>({})
: IMap<String, Typed<FixedEncodedString43>>.fromJson(
json['parentByChild'] as Map<String, dynamic>,
json['parent_by_child'] as Map<String, dynamic>,
(value) => value as String,
(value) => Typed<FixedEncodedString43>.fromJson(value)),
rootRecords: json['rootRecords'] == null
rootRecords: json['root_records'] == null
? const ISetConst<TypedKey>({})
: ISet<Typed<FixedEncodedString43>>.fromJson(json['rootRecords'],
: ISet<Typed<FixedEncodedString43>>.fromJson(json['root_records'],
(value) => Typed<FixedEncodedString43>.fromJson(value)),
debugNames: json['debugNames'] == null
debugNames: json['debug_names'] == null
? const IMapConst<String, String>({})
: IMap<String, String>.fromJson(
json['debugNames'] as Map<String, dynamic>,
json['debug_names'] as Map<String, dynamic>,
(value) => value as String,
(value) => value as String),
);
@ -37,20 +37,20 @@ _$DHTRecordPoolAllocationsImpl _$$DHTRecordPoolAllocationsImplFromJson(
Map<String, dynamic> _$$DHTRecordPoolAllocationsImplToJson(
_$DHTRecordPoolAllocationsImpl instance) =>
<String, dynamic>{
'childrenByParent': instance.childrenByParent.toJson(
'children_by_parent': instance.childrenByParent.toJson(
(value) => value,
(value) => value.toJson(
(value) => value,
(value) => value.toJson(),
),
),
'parentByChild': instance.parentByChild.toJson(
(value) => value,
'parent_by_child': instance.parentByChild.toJson(
(value) => value,
(value) => value.toJson(),
),
'rootRecords': instance.rootRecords.toJson(
(value) => value,
'root_records': instance.rootRecords.toJson(
(value) => value.toJson(),
),
'debugNames': instance.debugNames.toJson(
'debug_names': instance.debugNames.toJson(
(value) => value,
(value) => value,
),
@ -59,13 +59,13 @@ Map<String, dynamic> _$$DHTRecordPoolAllocationsImplToJson(
_$OwnedDHTRecordPointerImpl _$$OwnedDHTRecordPointerImplFromJson(
Map<String, dynamic> json) =>
_$OwnedDHTRecordPointerImpl(
recordKey: Typed<FixedEncodedString43>.fromJson(json['recordKey']),
recordKey: Typed<FixedEncodedString43>.fromJson(json['record_key']),
owner: KeyPair.fromJson(json['owner']),
);
Map<String, dynamic> _$$OwnedDHTRecordPointerImplToJson(
_$OwnedDHTRecordPointerImpl instance) =>
<String, dynamic>{
'recordKey': instance.recordKey,
'owner': instance.owner,
'record_key': instance.recordKey.toJson(),
'owner': instance.owner.toJson(),
};