246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
OFStream *stream;
size_t pageSize;
unsigned char *buffer;
if ((URLHandler = [OFURLHandler handlerForURL: URL]) == nil)
@throw [OFUnsupportedProtocolException
exceptionWithURL: URL];
_itemSize = 1;
_count = 0;
pageSize = [OFSystemInfo pageSize];
buffer = [self allocMemoryWithSize: pageSize];
|
>
>
>
|
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
|
OFStream *stream;
size_t pageSize;
unsigned char *buffer;
if ((URLHandler = [OFURLHandler handlerForURL: URL]) == nil)
@throw [OFUnsupportedProtocolException
exceptionWithURL: URL];
stream = [URLHandler openItemAtURL: URL
mode: @"r"];
_itemSize = 1;
_count = 0;
pageSize = [OFSystemInfo pageSize];
buffer = [self allocMemoryWithSize: pageSize];
|