Forum Navigation
Ctor for MemoryConduit and misc. questions
Posted: 10/06/07 00:09:12Recently I created a unit test with the following init code:
const ubyte source[] = [ 0xAB,0xCD ]; auto conduit = new MemoryConduit; conduit.write(source);Is there a reason why MemoryConduit? has no ctor taking a void[] for initialization ? My code would then look like:
const ubyte source[] = [ 0xAB,0xCD ]; auto conduit = new MemoryConduit(source);And some more questions: I had code working with std.Outbuffer from Phobos. Which classes from Tango would get closest to std.Outbuffer when it comes to functionality ? Is it a combination of MemoryConduit? and a Reader/Writer ? Or would you use a Buffer/GrowBuffer ? Thanks
KlausO