revision

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ACL_REVISION    = 0x02
	ACL_REVISION_DS = 0x04
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlListRevision

type AccessControlListRevision struct {
	Value uint8
}

AccessControlListRevision represents the revision of an access control list.

func (*AccessControlListRevision) Equal

Equal checks if two AccessControlListRevision structs are equal.

Parameters:

  • other: The other AccessControlListRevision to compare with.

Returns:

  • bool: True if the revisions are equal, false otherwise.

func (*AccessControlListRevision) GetRevision

func (aclrev *AccessControlListRevision) GetRevision() uint8

GetRevision returns the revision of the Access Control List.

Returns:

  • uint8: The revision of the Access Control List.

func (*AccessControlListRevision) Marshal

func (aclrev *AccessControlListRevision) Marshal() ([]byte, error)

Marshal serializes the AccessControlListRevision struct into a byte slice.

Returns:

  • []byte: The serialized byte slice representing the ACL revision.

func (*AccessControlListRevision) SetRevision

func (aclrev *AccessControlListRevision) SetRevision(revision uint8)

SetRevision sets the revision of the Access Control List.

Parameters:

  • revision: The revision to set.

func (*AccessControlListRevision) String

func (aclrev *AccessControlListRevision) String() string

String returns the string representation of the AccessControlListRevision struct.

Returns:

  • string: The string representation of the AccessControlListRevision.

func (*AccessControlListRevision) Unmarshal

func (aclrev *AccessControlListRevision) Unmarshal(marshalledData []byte) (int, error)

Unmarshal parses the AccessControlListRevision struct from a byte slice.

Parameters:

  • rawBytes ([]byte): The byte slice to parse.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL