This transport is wire compatible withTFramedTransport,
but makes use of reusable, expanding read and write buffers in order to avoid allocating new byte[]s all the time. Since the buffers only expand, you should probably only use this transport if your messages are not too variably large, unless the persistent
memory cost is not an issue. This implementation is NOT threadsafe.