C# Class MemoryMappedLog.MMLog

Mostrar archivo Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
Append ( TraceEventType eventType, int tick, LogComponent component, string thread, string header, string message ) : void
ReadNewEntries ( int sinceIdx, int &newIdx ) : MemoryMappedLog.LogEntry[]
RegisterChangeCallback ( System.Action callback ) : void

Private Methods

Method Description
GetCurrentIndex ( ) : int
GetEntryOffset ( int entryIndex ) : int
IncrementCurrentIndex ( ) : int
MMLog ( ) : System
ReadArray ( int entryIndex, byte array ) : int
ReadEntry ( int entryIndex ) : LogEntry
WriteArray ( int entryIndex, byte array, int len ) : void

Method Details

Append() public static method

public static Append ( TraceEventType eventType, int tick, LogComponent component, string thread, string header, string message ) : void
eventType TraceEventType
tick int
component LogComponent
thread string
header string
message string
return void

ReadNewEntries() public static method

public static ReadNewEntries ( int sinceIdx, int &newIdx ) : MemoryMappedLog.LogEntry[]
sinceIdx int
newIdx int
return MemoryMappedLog.LogEntry[]

RegisterChangeCallback() public static method

public static RegisterChangeCallback ( System.Action callback ) : void
callback System.Action
return void