utils
import "github.com/TheManticoreProject/Manticore/network/smb/smb_v10/message/commands/utils"
Index
- func GetNullTerminatedString(data []byte) (string, int)
- func GetNullTerminatedUnicodeString(data []byte) (string, int)
func GetNullTerminatedString
func GetNullTerminatedString(data []byte) (string, int)
GetNullTerminatedString returns the null-terminated string from the data and the offset of the next byte after the null terminator
Parameters: - data: The data to extract the null-terminated string from
Returns: - The null-terminated string - The offset of the next byte after the null terminator
func GetNullTerminatedUnicodeString
func GetNullTerminatedUnicodeString(data []byte) (string, int)
GetNullTerminatedUnicodeString returns the null-terminated Unicode string from the data and the offset of the next byte after the null terminator
Parameters: - data: The data to extract the null-terminated Unicode string from
Returns: - The null-terminated Unicode string - The offset of the next byte after the null terminator