Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4588

.NET: Simplify BinaryReader frame handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8
    • 1.9
    • platforms

    Description

      BinaryReader has a concept of frame, which is position, header, raw flag, etc. When reading nested objects we preserve previous frame in a bunch of variables and restore them afterwards.

      This process can be improved by using a struct: backup/restore in one line, easier to grasp which parameters belong to a frame.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: