noodlewerk/NWIO — Issue #1: no switching in access like in stream
Author: leonardvandriel
Created: 2011-11-16 21:52:19+00:00
State: open

The following test fails:

NWIOConstantAccess *constant = [[NWIOConstantAccess alloc] initWithInputLength:10 outputLength:10];
const void *buffer = nil;
NSUInteger length = [constant readable:&buffer location:0];
NSAssert(length, @"Should read something");

It would be nice if NWIOAccess had switching from readable to read and writable to write, just like NSStream has.