Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Convert LLC and SNAP to DecodingLayer interface #505
This moves code from the decodeX functions to DecodeFromBytes for both LLC and SNAP and changes decodeX to use DecodeFromBytes. The only behavioral change I introduced is error handling in case the passed byte-slice is too short.
Since I touched the file, I also added a second commit that removes the underscores in LLC.SerializeTo from the variable names to make the linter happy - I can make a separate pull request for this if you like.