Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void writeSomethingLikeNodeRecord(org.neo4j.kernel.impl.core.JumpingFileSystemAbstraction.JumpingFileChannel channel, long id, int justAByte) throws java.io.IOException
        private void WriteSomethingLikeNodeRecord(JumpingFileChannel channel, long id, int justAByte)
        {
            channel.Position(id * RECORD_SIZE);
            ByteBuffer buffer = ByteBuffer.allocate(RECORD_SIZE);

            buffer.putLong(4321);
            buffer.put(( sbyte )justAByte);
            buffer.flip();
            channel.Write(buffer);
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private byte readSomethingLikeNodeRecord(org.neo4j.kernel.impl.core.JumpingFileSystemAbstraction.JumpingFileChannel channel, long id) throws java.io.IOException
        private sbyte ReadSomethingLikeNodeRecord(JumpingFileChannel channel, long id)
        {
            ByteBuffer buffer = ByteBuffer.allocate(RECORD_SIZE);

            channel.Position(id * RECORD_SIZE);
            channel.Read(buffer);
            buffer.flip();
            buffer.Long;
            return(buffer.get());
        }