Once we revamp the StreamWriter API (see also #194), we should have StreamWriter give the user access to a `ByteBufferAllocator`.