SessionInfo parsing and another stuff

This commit is contained in:
2024-10-27 23:25:28 +00:00
parent 2bc756a2f0
commit d48a6fa24a
6 changed files with 54 additions and 8 deletions
+3
View File
@@ -4,6 +4,7 @@ import (
"bytes"
"encoding/binary"
"fmt"
"ibtReader/utils"
)
const (
@@ -23,6 +24,8 @@ type DiskSubHeader struct {
// or nil if an error occurs. In which case the error return value is more
// valuable
func parseTelemetrySubHeader(buf [SubHeaderSize]byte) (*DiskSubHeader, error) {
utils.HexDump(buf[:])
dst := DiskSubHeader{}
err := binary.Read(bytes.NewBuffer(buf[:]), binary.LittleEndian, &dst)
if err != nil {