mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-03 15:47:38 -04:00
16 lines
281 B
Go
16 lines
281 B
Go
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))
|
|
}
|