protected internal override void WriteFormatSpecifier(WritableBuffer formatSpecifier)
 {
     for (int i = 0; i < formatSpecifier.Size(); i++)
     {
         formatSpecifier.PutByte(i, unchecked (( sbyte )0xFF));
     }
 }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visit(WritableBuffer key, WritableBuffer value) throws java.io.IOException
            public bool visit(WritableBuffer key, WritableBuffer value)
            {
                if (done)
                {
                    return(false);
                }
                ReadKeyValuePair(_cursor, offset, key, value);
                if (key.AllZeroes())
                {
                    done = true;
                    return(false);
                }
                offset += key.Size() + value.Size();
                if (offset >= _outerInstance.file.pageSize())
                {
                    offset = 0;
                    if (!_cursor.next())
                    {
                        done = true;
                    }
                }
                return(true);
            }
Example #3
0
 protected internal override void WriteFormatSpecifier(WritableBuffer formatSpecifier)
 {
     formatSpecifier.PutByte(0, unchecked (( sbyte )0xFF));
     formatSpecifier.PutByte(formatSpecifier.Size() - 1, unchecked ((sbyte)0xFF));
 }
Example #4
0
 public void write(long?value, WritableBuffer header)
 {
     header.PutLong(header.Size() - 8, value.Value);
 }