Differences From Artifact [d80678a165]:
- File src/OFFile.m — part of check-in [2aaab788cc] at 2008-10-28 19:00:54 on branch trunk — Better overflow checking. (user: js, size: 2787) [annotate] [blame] [check-ins using]
To Artifact [b1dd678aec]:
- File
src/OFFile.m
— part of check-in
[49859c2bcc]
at
2008-10-29 17:29:49
on branch trunk
— Add getMemForNItems:withSize: & resizeMem:toNItems:withSize: in OFObject
Additionally, interface for OFArray. (user: js, size: 2651) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
102 103 104 105 106 107 108 | return ret; } - (uint8_t*)readWithSize: (size_t)size andNItems: (size_t)nitems { | < < < < < < < < | > | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | return ret; } - (uint8_t*)readWithSize: (size_t)size andNItems: (size_t)nitems { uint8_t *ret; ret = [self getMemForNItems: nitems withSize: size]; @try { [self readIntoBuffer: ret withSize: size andNItems: nitems]; } @catch (OFReadFailedException *e) { [self freeMem: ret]; |
︙ | ︙ |