示例#1
0
文件: Map.cs 项目: bel-uwa/Loyc
 /// <summary>Measures the total size of all objects allocated to this
 /// collection, in bytes, including the size of this object itself; see
 /// <see cref="InternalSet{T}.CountMemory"/>.</summary>
 public virtual long CountMemory(int sizeOfPair)
 {
     return(IntPtr.Size * 4 + _set.CountMemory(sizeOfPair));
 }
示例#2
0
文件: Set.cs 项目: dadhi/ecsharp
 /// <summary>Measures the total size of all objects allocated to this
 /// collection, in bytes, including the size of this object itself; see
 /// <see cref="Impl.InternalSet{T}.CountMemory"/>.</summary>
 public long CountMemory(int sizeOfT)
 {
     return(IntPtr.Size * 2 + _set.CountMemory(sizeOfT));
 }