When we receive EOF we'll call decodeLast. This allows you to produce any final values that you may require, or to throw an error if the data is invalid. There's a default implementation of this in terms of decode, which is why you may not have noticed this method yet.
1 Like