Avro
  1. Avro
  2. AVRO-370

Add support for encoding/decoding fixed data

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: c
    • Labels:
      None

      Description

      This patch add fixed data support to the C implementation

      Just as with string and bytes processing, I have added two new methods: avro_wrapfixed, avro_givefixed to allow developers that freedom to decide how the bytes of memory are managed. avro_wrapfixed will not free the bytes when the fixed datum is dereferenced. avro_givefixed will free the bytes memory when dereferenced. avro_fixed will make a copy of the bytes.

      I also plugged a small potential memory leak issue that could occur because of IO errors.

      1. AVRO-370.patch
        9 kB
        Matt Massie

        Activity

        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Matt Massie made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Matt Massie made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Matt Massie made changes -
        Field Original Value New Value
        Attachment AVRO-370.patch [ 12431159 ]
        Matt Massie created issue -

          People

          • Assignee:
            Matt Massie
            Reporter:
            Matt Massie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development