mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-06 09:07:18 -04:00
Add basic Go ETW implementation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package etw
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
)
|
||||
|
||||
type EventData struct {
|
||||
buffer bytes.Buffer
|
||||
}
|
||||
|
||||
func (ed *EventData) AddString(data string) {
|
||||
binary.Write(&ed.buffer, binary.LittleEndian, []byte(data))
|
||||
binary.Write(&ed.buffer, binary.LittleEndian, byte(0))
|
||||
}
|
||||
Reference in New Issue
Block a user