attrtype

package
v0.0.0-...-2776432 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code uint32

Code is an attribute type code.

const (
	StandardInformation Code = 0x0010     // $STANDARD_INFORMATION
	AttributeList       Code = 0x0020     // $ATTRIBUTE_LIST
	FileName            Code = 0x0030     // $FILE_NAME
	ObjectID            Code = 0x0040     // $OBJECT_ID
	SecurityDescriptor  Code = 0x0050     // $SECURITY_DESCRIPTOR
	VolumeName          Code = 0x0060     // $VOLUME_NAME
	VolumeInformation   Code = 0x0070     // $VOLUME_INFORMATION
	Data                Code = 0x0080     // $DATA
	IndexRoot           Code = 0x0090     // $INDEX_ROOT
	IndexAllocation     Code = 0x00A0     // $INDEX_ALLOCATION
	Bitmap              Code = 0x00B0     // $BITMAP
	ReparsePoint        Code = 0x00C0     // $REPARSE_POINT aka $SYMBOLIC_LINK
	EAInformation       Code = 0x00D0     // $EA_INFORMATION
	EA                  Code = 0x00E0     // $EA
	PropertySet         Code = 0x00F0     // $PROPERTY_SET
	UserDefined         Code = 0x0100     // $FIRST_USER_DEFINED_ATTRIBUTE
	End                 Code = 0xFFFFFFFF // End of attribute stream
)

Attribute type codes.

func Unmarshal

func Unmarshal(data []byte) Code

Unmarshal unmarshals the little-endian binary representation of an attribute type code.

The provided data must be at least 4 bytes long, or unmarshal will panic.

func (Code) String

func (c Code) String() string

String returns a description of the attribute type code.

Jump to

Keyboard shortcuts

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