Decode the protobuf wire format in Gleam!
3

Configure Feed

Select the types of activity you want to include in your feed.

cont: fix gtfs tests

Gavin Morrow (Sep 28, 2025, 9:04 PM EDT) 3be729fd 65cc35ed

+7 -7
test/packed-fields.pb

This is a binary file and will not be displayed.

+1 -1
test/packed-fields.protoscope.txt
··· 1 - 3: {`01`} 1 + 3: {`00`} 2 2 3: {`010203`} 3 3 4 4 4: 4
+6 -6
test/protobuf_decode_gleam_test.gleam
··· 178 178 "1.0", 179 179 1_758_224_061, 180 180 NyctHeader("1.0", [ 181 - TripReplacementPeriod("7", 1_758_224_061), 182 - TripReplacementPeriod("6", 1_758_224_061), 183 - TripReplacementPeriod("5", 1_758_224_061), 184 - TripReplacementPeriod("2", 1_758_224_061), 185 181 TripReplacementPeriod("1", 1_758_224_061), 182 + TripReplacementPeriod("2", 1_758_224_061), 183 + TripReplacementPeriod("5", 1_758_224_061), 184 + TripReplacementPeriod("6", 1_758_224_061), 185 + TripReplacementPeriod("7", 1_758_224_061), 186 186 ]), 187 187 ), 188 188 <<>>, ··· 214 214 215 215 assert packed_fields 216 216 == Parsed( 217 - value: PackedFields(packed: [1, 2, 3], expanded: [4, 5, 6]), 217 + value: PackedFields(packed: [0, 1, 2, 3], expanded: [4, 5, 6]), 218 218 rest: <<>>, 219 - pos: 9, 219 + pos: 14, 220 220 ) 221 221 }