package ndr

import 

// Malformed implements the error interface for malformed NDR encoding errors.
type Malformed struct {
	EText string
}

// Error implements the error interface on the Malformed struct.
func ( Malformed) () string {
	return fmt.Sprintf("malformed NDR stream: %s", .EText)
}

// Errorf formats an error message into a malformed NDR error.
func ( string,  ...interface{}) Malformed {
	return Malformed{EText: fmt.Sprintf(, ...)}
}