Differences From Artifact [f5e3ef753a]:
- File
src/OFMessagePackExtension.m
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 3788) [annotate] [blame] [check-ins using]
To Artifact [06108912c2]:
- File src/OFMessagePackExtension.m — part of check-in [fc17e7646a] at 2017-02-03 22:36:28 on branch trunk — OFMessagePackExtension: Only swap bytes if LE (user: js, size: 3800) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
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] |
︙ | ︙ |