base: Add wrapped protobuf input stream