예제 #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));
 }