Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

datafields

import "github.com/TheManticoreProject/Manticore/crypto/spnego/ntlm/datafields"

Index

type DataFields

DataFields is the data fields of an NTLM message

type DataFields struct {
    // Len is the length of the data fields (in bytes)
    Len uint16

    // MaxLen is the maximum length of the data fields (in bytes)
    MaxLen uint16

    // BufferOffset is the offset of the buffer (in bytes)
    BufferOffset uint32
}

func (*DataFields) Equal

func (df *DataFields) Equal(other *DataFields) bool

Equal compares two DataFields structs for equality

func (*DataFields) Marshal

func (df *DataFields) Marshal() ([]byte, error)

Marshal serializes the DataFields into a byte slice

func (*DataFields) Unmarshal

func (df *DataFields) Unmarshal(data []byte) (int, error)

Unmarshal deserializes a byte slice into DataFields