smbtype

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

Documentation

Overview

Package smbtype provides type conversion for basic SMB protocol types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutTime

func PutTime(v []byte, t time.Time)

PutTime writes a slice of 8 bytes as a FILETIME struct with the value of t.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/2c57429b-fdd4-488f-b5fc-9e4cf020fcdf

func PutUint16

func PutUint16(b []byte, v uint16)

PutUint16 writes a uint16 as a slice of 2 bytes in little-endian byte order.

func PutUint32

func PutUint32(b []byte, v uint32)

PutUint32 writes a uint32 as a slice of 4 bytes in little-endian byte order.

func PutUint64

func PutUint64(b []byte, v uint64)

PutUint64 writes a uint64 as a slice of 8 bytes in little-endian byte order.

func String

func String(b []byte) string

String interprets a slice of bytes as utf16 in little-endian byte order and returns its value as a string.

func Time

func Time(v []byte) time.Time

Time interprets a slice of 8 bytes as a FILETIME struct and returns its value as a time.Time.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/2c57429b-fdd4-488f-b5fc-9e4cf020fcdf

func Uint16

func Uint16(b []byte) uint16

Uint16 interprets a slice of 2 bytes as an integer in little-endian byte order and returns its value.

func Uint32

func Uint32(b []byte) uint32

Uint32 interprets a slice of 4 bytes as an integer in little-endian byte order and returns its value.

func Uint64

func Uint64(b []byte) uint64

Uint64 interprets a slice of 8 bytes as an integer in little-endian byte order and returns its value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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