本文整理汇总了C#中Db4objects.Length方法的典型用法代码示例。如果您正苦于以下问题:C# Db4objects.Length方法的具体用法?C# Db4objects.Length怎么用?C# Db4objects.Length使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects
的用法示例。
在下文中一共展示了Db4objects.Length方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CompareByAddress
public virtual int CompareByAddress(Db4objects.Db4o.Internal.Slots.Slot slot)
{
// FIXME: This is the wrong way around !!!
// Fix here and in all referers.
int res = slot._address - _address;
if (res != 0)
{
return res;
}
return slot.Length() - Length();
}
示例2: IdSlotMapping
public IdSlotMapping(int id, Db4objects.Db4o.Internal.Slots.Slot slot) : this(id,
slot.Address(), slot.Length())
{
}
示例3: StatefulBuffer
public StatefulBuffer(Db4objects.Db4o.Internal.Transaction trans, Db4objects.Db4o.Internal.Slots.Slot
slot) : this(trans, slot.Address(), slot.Length())
{
}
示例4: UseSlot
public void UseSlot(Db4objects.Db4o.Internal.Slots.Slot slot)
{
_address = slot.Address();
_offset = 0;
if (slot.Length() > _buffer.Length)
{
_buffer = new byte[slot.Length()];
}
_length = slot.Length();
}
示例5: Append
public virtual Db4objects.Db4o.Internal.Slots.Slot Append(Db4objects.Db4o.Internal.Slots.Slot
slot)
{
return new Db4objects.Db4o.Internal.Slots.Slot(Address(), _length + slot.Length()
);
}