MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / newHeader

Function newHeader

internal/auditlog/codec/binary/header.go:40–45  ·  view source on GitHub ↗
(version uint64)

Source from the content-addressed store, hash-verified

38}
39
40func newHeader(version uint64) Header {
41 return Header{
42 Magic: fileFormatBytes,
43 Version: version,
44 }
45}
46
47func readHeader(reader io.Reader, maxVersion uint64) (uint64, error) {
48 headerBytes := make([]byte, FileFormatLength+8)

Callers 1

EncodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected