Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4113

Provide a buffer transport for reading/writing in memory byte stream

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: Rust - Library
    • Labels:
      None

      Description

      Currently the Rust support doesn't seem to have the ability to take a input byte stream and deserialize it with a particular protocol. The same for the write path. TBufferTransport seems to be the closest one but it is not exposed. Also, it copies the data to a intermediate buffer, which could be costly when deserializing large byte streams.

      We should implement something similar to CPP's TMemoryBuffer which provides 3 flavors of how the input buffer can be treated. IMO We can start by modifying TBufferTransport and make it public.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                csun Chao Sun
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: