PooledTracePacketArray



Summary

Public functions

inline Unit
forEach(block: (packet: TraceEvent) -> Unit)
Cmn
open Unit

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

Cmn

Public properties

volatile Int

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

Cmn
Array<TraceEvent>

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

Cmn

Public functions

forEach

inline fun forEach(block: (packet: TraceEvent) -> Unit): Unit

recycle

open fun recycle(): Unit

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

Public properties

fillCount

@Volatile
volatile var fillCountInt

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

packets

val packetsArray<TraceEvent>

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

This is an Array to simplify data access.