smbid

package
v0.0.0-...-c8c792b Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID [16]byte

ID is a 16-byte ephemeral universally unique identifier that uniquely identifies a client or server. Its bytes are stored in big-endian order.

func New

func New() (id ID, err error)

New generates a random ID using crypto/rand.

func (*ID) Read

func (id *ID) Read(v []byte)

Read interprets a slice of bytes as a GUID in little endian byte order and copies the value to id. If v is less than 16 bytes long Read will panic.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/001eec5a-7f8b-4293-9e21-ca349392db40

func (ID) String

func (id ID) String() string

String returns a string representation of the ID.

func (ID) Write

func (id ID) Write(v []byte)

Write writes id as a GUID in little endian byte order to v. If v is less than 16 bytes long Write will panic.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/001eec5a-7f8b-4293-9e21-ca349392db40

Jump to

Keyboard shortcuts

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