Our codebase is using Extensions quite extensively, and we've noticed that reading and writing an Extension with the current msgp API always causes an allocation, which is usually not the case when using any other msgp Read/Write methods. Therefore we've added Reader.ReadExtensionRaw() and Writer.WriteExtensionRaw() in this PR which allows zero-alloc code paths for extensions.
Our codebase is using Extensions quite extensively, and we've noticed that reading and writing an Extension with the current msgp API always causes an allocation, which is usually not the case when using any other msgp Read/Write methods. Therefore we've added Reader.ReadExtensionRaw() and Writer.WriteExtensionRaw() in this PR which allows zero-alloc code paths for extensions.