Exemple #1
0
            public CallbackData(CounterVisitor visitor, int bufferSize)
            {
                this.visitor = visitor;

                array = ArrayPool <byte> .Shared.Rent(bufferSize);

                gch = GCHandle.Alloc(this);
            }
Exemple #2
0
 public void Dump(CounterVisitor visitor)
 {
     using var data = new CallbackData(visitor, bufferSize);
     Native.mono_counters_foreach(cb, data.Handle);
 }