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

ThriftMemoryBuffer doesn't have a constructor option to take an existing buffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • C glib - Library
    • None
    • Patch Available
    • Patch

    Description

      If I want to do a straight-up serialization/deserialization sans RPC I'd like to be able to read like this C# does:

      Item Deserialize(byte[] bytes) { using (var trans = new TMemoryBuffer(bytes)) using (var proto = new TBinaryProtocol(trans)) return new Item().Do(item => item.Read(proto)); }

      Attachments

        Activity

          People

            cjmay Chandler May
            etolmachev Eugene Tolmachev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: