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

andx

import "github.com/TheManticoreProject/Manticore/network/cifs/message/commands/andx"

Index

type AndX

AndX Messages contain a construct, conceptually similar to a linked-list, that is used to connect the batched block pairs. Source: 2.2.3.4 Batched Messages (“AndX” Messages) https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-cifs/fc4d19f7-8040-426d-9154-7219c57453c8

type AndX struct {
    AndXCommand  codes.CommandCode
    AndXReserved uint8
    AndXOffset   uint16
}

func NewAndX

func NewAndX() *AndX

NewAndX creates a new AndX structure

func (*AndX) GetCommandCode

func (a *AndX) GetCommandCode() codes.CommandCode

GetCommandCode returns the command code of the AndX structure Returns: - The command code of the AndX structure

func (*AndX) GetOffset

func (a *AndX) GetOffset() uint16

GetOffset returns the offset of the AndX structure Returns: - The offset of the AndX structure

func (*AndX) GetParameters

func (a *AndX) GetParameters() []uint16

GetParameters returns the parameters of the AndX structure Returns: - A byte array containing the parameters of the AndX structure

func (*AndX) Marshal

func (a *AndX) Marshal() ([]byte, error)

Marshal marshals the AndX structure into a byte array Returns: - A byte array containing the marshalled AndX structure - An error if the marshalling process fails, or nil if successful

func (*AndX) Unmarshal

func (a *AndX) Unmarshal(data []byte) (int, error)

Unmarshal unmarshals the AndX structure from a byte array Returns: - The number of bytes read - An error if the unmarshalling process fails, or nil if successful