common

package
v0.0.0-...-49170b6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANON_INODE_FS_MAGIC   = 0x09041934
	CGROUP_SUPER_MAGIC    = 0x27e0eb
	DEVPTS_SUPER_MAGIC    = 0x00001cd1
	EXT_SUPER_MAGIC       = 0xef53
	FUSE_SUPER_MAGIC      = 0x65735546
	OVERLAYFS_SUPER_MAGIC = 0x794c7630
	PIPEFS_MAGIC          = 0x50495045
	PROC_SUPER_MAGIC      = 0x9fa0
	RAMFS_MAGIC           = 0x09041934
	SOCKFS_MAGIC          = 0x534F434B
	SYSFS_MAGIC           = 0x62656572
	TMPFS_MAGIC           = 0x01021994
	V9FS_MAGIC            = 0x01021997
)

Filesystem types used in statfs(2).

See linux/magic.h.

View Source
const (
	NAME_MAX = 255
	PATH_MAX = 4096
)

Filesystem path limits, from uapi/linux/limits.h.

Variables

This section is empty.

Functions

func UnmarshalBytes

func UnmarshalBytes(v Unmarshal, buf []byte) error

Types

type Int16

type Int16 int16

Int16 is a marshal.Marshallable implementation for int16.

func (*Int16) SizeBytes

func (i *Int16) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int16) UnmarshalBytes

func (i *Int16) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Int32

type Int32 int32

Int32 is a marshal.Marshallable implementation for int32.

func (*Int32) SizeBytes

func (i *Int32) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int32) UnmarshalBytes

func (i *Int32) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Int64

type Int64 int64

Int64 is a marshal.Marshallable implementation for int64.

func (*Int64) SizeBytes

func (i *Int64) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int64) UnmarshalBytes

func (i *Int64) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Int8

type Int8 int8

Int8 is a marshal.Marshallable implementation for int8.

func (*Int8) SizeBytes

func (i *Int8) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Int8) UnmarshalBytes

func (i *Int8) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Uint16

type Uint16 uint16

Uint16 is a marshal.Marshallable implementation for uint16.

func (*Uint16) SizeBytes

func (u *Uint16) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint16) UnmarshalBytes

func (u *Uint16) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Uint32

type Uint32 uint32

Uint32 is a marshal.Marshallable implementation for uint32.

func (*Uint32) SizeBytes

func (u *Uint32) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint32) UnmarshalBytes

func (u *Uint32) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Uint64

type Uint64 uint64

Uint64 is a marshal.Marshallable implementation for uint64.

func (*Uint64) SizeBytes

func (u *Uint64) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint64) UnmarshalBytes

func (u *Uint64) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Uint8

type Uint8 uint8

Uint8 is a marshal.Marshallable implementation for uint8.

func (*Uint8) SizeBytes

func (u *Uint8) SizeBytes() int

SizeBytes implements marshal.Marshallable.SizeBytes.

func (*Uint8) UnmarshalBytes

func (u *Uint8) UnmarshalBytes(src []byte) error

UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.

type Unmarshal

type Unmarshal interface {
	SizeBytes() int

	// UnmarshalBytes deserializes a type from src.
	// Precondition: buf must be at least SizeBytes() in length.
	UnmarshalBytes(buf []byte) error
}

Jump to

Keyboard shortcuts

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