File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,17 +66,17 @@ Minimal example using the default `EncodedFormat` (Base62 + PackedFormat):
6666@Serializable
6767data class Payload (
6868 @VarUInt
69- val id : ULong , // varint
69+ val id : ULong , // varint
7070
7171 @VarInt
72- val delta : Int , // zig-zag + varint
72+ val delta : Int , // zig-zag + varint
7373
74- val urgent : Boolean , // joined to bitset
74+ val urgent : Boolean , // joined to bitset
7575 val sensitive : Boolean ,
7676 val external : Boolean ,
77- val handledAt : Instant ? , // nullable, tracked via bitmask
77+ val handled : Instant ? , // nullable, tracked via bitset
7878
79- val type : PayloadType // enum, encoded as varuint ordinal
79+ val type : PayloadType // encoded as varint
8080)
8181
8282enum class PayloadType { TYPE1 , TYPE2 , TYPE3 }
@@ -87,7 +87,7 @@ val payload = Payload(
8787 urgent = true ,
8888 sensitive = false ,
8989 external = true ,
90- handledAt = null ,
90+ handled = null ,
9191 type = PayloadType .TYPE1
9292)
9393
You can’t perform that action at this time.
0 commit comments