コード例 #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));
 }