Documentation ¶
Index ¶
- Constants
- Variables
- func BitmapToString(bitmap uint64) string
- func ConvertBytesToStringUTF16(b []byte) (string, error)
- func Hexdump(data []byte, lineLength int) string
- func ParseWindowsTimestamp(s string) (*time.Time, error)
- func TimeFromFILETIME(filetime uint64) time.Time
- func TimeFromTSTime(gen *generated.Tstime, tz *time.Location) time.Time
- func UuidFromMemory(raw []byte) (uuid.UUID, error)
- type Duration
- type SID
Constants ¶
View Source
const RFC3339NoTimezone = "2006-01-02T15:04:05.999999999"
Variables ¶
View Source
var ( ErrSidToShort = errors.New("binary sid too short") ErrSidLengthUnexpected = errors.New("binary sid length unexpected") )
Functions ¶
func BitmapToString ¶
func ConvertBytesToStringUTF16 ¶ added in v0.6.0
func Hexdump ¶
Hexdump converst the byte array into an ascii hex dump with lineLength elements per line
func ParseWindowsTimestamp ¶ added in v0.6.0
func TimeFromFILETIME ¶
func TimeFromTSTime ¶
TimeFromTSTime turns a generated TSTime object into a Golang time.Time. tz must be set to the Timezone of the TSTime object, otherwise the de-localization returns objects in the wrong timezone.
Types ¶
type Duration ¶
time.Duration does not support JSON marshalling; hence, we need a wrapper which implements it
func DurationFromTSTimePeriod ¶
func DurationFromTSTimePeriod(gen *generated.Tstimeperiod) Duration
func SecondsToDuration ¶
func (Duration) MarshalJSON ¶
type SID ¶
type SID struct { RevisionLevel uint8 SubAuthorityCount int Authority uint64 SubAuthorities []uint }
func SidFromBytes ¶
func (SID) MarshalText ¶
Click to show internal directories.
Click to hide internal directories.