Decode the protobuf wire format in Gleam! protobin.hexdocs.pm/
gleam protobuf
3

Configure Feed

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

Naming: use `rest` instead of `bits`

Gavin Morrow (Sep 18, 2025, 3:21 PM EDT) fdac67e8 68e384d8

+2 -2
+2 -2
src/protobuf_decode_gleam.gleam
··· 71 71 Len -> todo 72 72 I32 -> todo 73 73 } 74 - use #(value, bits): #(Dynamic, BitArray) <- result.try({ 74 + use #(value, rest): #(Dynamic, BitArray) <- result.try({ 75 75 use value <- result.map(read_fn(bits)) 76 76 use value <- pair.map_first(value) 77 77 dynamic.bit_array(value) 78 78 }) 79 79 80 - Ok(#(#(dynamic.int(field_id), value), bits)) 80 + Ok(#(#(dynamic.int(field_id), value), rest)) 81 81 } 82 82 83 83 type ValueResult =