Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

utils

import "github.com/TheManticoreProject/Manticore/network/cifs/message/commands/utils"

Index

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