Skip to content

Instantly share code, notes, and snippets.

@thebapi
Created October 19, 2023 21:01
Show Gist options
  • Select an option

  • Save thebapi/002aa9fc35dca0908991b6212e300163 to your computer and use it in GitHub Desktop.

Select an option

Save thebapi/002aa9fc35dca0908991b6212e300163 to your computer and use it in GitHub Desktop.

Revisions

  1. thebapi created this gist Oct 19, 2023.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Rust
    Encoding Prost Message

    pl.encode_to_vec()


    Decoding Prost message

    let new_pl = integration_pb::UplinkEvent
    ::decode(&mut Cursor::new(buf))
    .unwrap();