attrflag

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

type Flag uint16

Flag is an attribute flag.

const (
	CompressionMask Flag = 0x00FF // ATTRIBUTE_FLAG_COMPRESSION_MASK
	Encrypted       Flag = 0x4000 // ATTRIBUTE_FLAG_ENCRYPTED
	Sparse          Flag = 0x8000 // ATTRIBUTE_FLAG_SPARSE
	KnownMask       Flag = CompressionMask | Encrypted | Sparse
	UnknownMask     Flag = ^KnownMask
)

Attribute flags.

func Unmarshal

func Unmarshal(data []byte) Flag

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

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

func (Flag) ShortString

func (f Flag) ShortString() string

ShortString returns a description of the attribute flags using single letter codes.

func (Flag) String

func (f Flag) String() string

String returns a description of the file name flags.

Jump to

Keyboard shortcuts

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