Exemplo n.º 1
0
Arquivo: Map.cs Projeto: 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));
 }
Exemplo n.º 2
0
Arquivo: Set.cs Projeto: 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));
 }