MCPcopy Create free account
hub / github.com/Synzack/ldapper / endianConvert

Function endianConvert

SecurityDescriptor/SecurityDescriptorFuncs.go:117–127  ·  view source on GitHub ↗
(sd string)

Source from the content-addressed store, hash-verified

115}
116
117func endianConvert(sd string) (newSD string) {
118 sdBytes, _ := hex.DecodeString(sd)
119
120 for i, j := 0, len(sdBytes)-1; i < j; i, j = i+1, j-1 {
121 sdBytes[i], sdBytes[j] = sdBytes[j], sdBytes[i]
122 }
123
124 newSD = hex.EncodeToString(sdBytes)
125
126 return
127}
128
129func hexToOffset(hex string) (integer int64) {
130 integer, _ = strconv.ParseInt(hex, 16, 64)

Callers 8

getHeaderFunction · 0.85
getACLHeaderFunction · 0.85
getACEHeaderFunction · 0.85
getACEMaskFunction · 0.85
getACEFlagsFunction · 0.85
convertSIDFunction · 0.85
getACEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected