PooledTracePacketArray


@DelicateTracingApi
public final class PooledTracePacketArray extends Poolable


Summary

Public fields

final int

Number of items present in packets with valid data - all others have been reset with TraceEvent.reset

final @NonNull TraceEvent[]

Array of packets, all pre-allocated, and never modified.

Public methods

final void
forEach(@NonNull Function1<@NonNull TraceEventUnit> block)
void

Recycles the object, and hands it back to the pool.

Public fields

fillCount

Added in 2.0.0-rc01
public final int fillCount

Number of items present in packets with valid data - all others have been reset with TraceEvent.reset

packets

Added in 2.0.0-rc01
public final @NonNull TraceEvent[] packets

Array of packets, all pre-allocated, and never modified.

This is an Array to simplify data access.

Public methods

forEach

Added in 2.0.0-rc01
public final void forEach(@NonNull Function1<@NonNull TraceEventUnit> block)

recycle

public void recycle()

Recycles the object, and hands it back to the pool.