// NOTICE: this assumes a "smart" ChannelBuffer that continues to next chunk //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public Void read(org.jboss.netty.buffer.ChannelBuffer buffer, ByteBuffer temporaryBuffer) throws java.io.IOException public override Void Read(ChannelBuffer buffer, ByteBuffer temporaryBuffer) { int pathLength; while (0 != (pathLength = buffer.readUnsignedShort())) { string path = ReadString(buffer, pathLength); bool hasData = buffer.readByte() == 1; Writer.write(path, hasData ? new BlockLogReader(buffer) : null, temporaryBuffer, hasData, 1); } Writer.Dispose(); return(null); }
// NOTICE: this assumes a "smart" ChannelBuffer that continues to next chunk //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public Void read(org.jboss.netty.buffer.ChannelBuffer buffer, ByteBuffer temporaryBuffer) throws java.io.IOException public override Void Read(ChannelBuffer buffer, ByteBuffer temporaryBuffer) { int pathLength; while (0 != (pathLength = buffer.readUnsignedShort())) { string path = ReadString(buffer, pathLength); bool hasData = buffer.readByte() == 1; int recordSize = hasData ? buffer.readInt() : Org.Neo4j.Kernel.impl.store.format.RecordFormat_Fields.NO_RECORD_SIZE; Writer.write(path, hasData ? new BlockLogReader(buffer) : null, temporaryBuffer, hasData, recordSize); } Writer.Dispose(); return(null); }