making memory stream buffer accessible as azure servicebus internals seems to access it