Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Encoding describes the way the byte stream is coded. Encoding string // TargetEndianness if bigEndian assumes a big endian encoded trice stream from the target. // To keep target load small, the encoded trice stream from the target matches the target endian, what us usually littleEndian. TargetEndianness string Verbose bool )
Functions ¶
func Translate ¶
func Translate(w io.Writer, sw *emitter.TriceLineComposer, lut id.TriceIDLookUp, m *sync.RWMutex, li id.TriceIDLookUpLI, rwc io.ReadWriteCloser) error
Translate performs the trice log task.
Bytes are read with rc. Then according decoder.Encoding they are translated into strings. Each read returns the amount of bytes for one trice. rc is called on every Translate returns true on io.EOF or false on hard read error or sigterm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.