Overview
Comment: | OFMessagePackExtension: Only swap bytes if LE |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
fc17e7646aac18d2574222c3a251b967 |
User & Date: | js on 2017-02-03 22:36:28 |
Other Links: | manifest | tags |
Context
2017-02-03
| ||
22:42 | Improve -[OFObject hash] check-in: a55371e2c9 user: js tags: trunk | |
22:36 | OFMessagePackExtension: Only swap bytes if LE check-in: fc17e7646a user: js tags: trunk | |
22:34 | base64.h: Remove obsolete extern check-in: 48d10d5b5d user: js tags: trunk | |
Changes
Modified src/OFMessagePackExtension.m from [f5e3ef753a] to [06108912c2].
︙ | ︙ | |||
120 121 122 123 124 125 126 | uint16_t length; ret = [OFDataArray dataArrayWithCapacity: count + 4]; prefix = 0xC8; [ret addItem: &prefix]; | | | | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | uint16_t length; ret = [OFDataArray dataArrayWithCapacity: count + 4]; prefix = 0xC8; [ret addItem: &prefix]; length = OF_BSWAP16_IF_LE((uint16_t)count); [ret addItems: &length count: 2]; [ret addItem: &_type]; } else { uint32_t length; ret = [OFDataArray dataArrayWithCapacity: count + 6]; prefix = 0xC9; [ret addItem: &prefix]; length = OF_BSWAP32_IF_LE((uint32_t)count); [ret addItems: &length count: 4]; [ret addItem: &_type]; } [ret addItems: [_data items] |
︙ | ︙ |