Add basic wireformat decoding functions.