func IsCodec(name string, data []byte) bool {
	id, err := GetCodec(data)
	if err != nil {
		return false
	}
	codecName, err := Name(id)
	if err != nil {
		// Failed to obtain name for ID
		return false
	}
	return codecName == name
}
// IsCodec returns true if the data is of the supplied codec prefix, otherwise false
IsCodec returns true if the data is of the supplied codec prefix, otherwise false
// IsCodec returns true if the data is of the supplied codec prefix otherwise false
func IsCodec(name string, data []byte) bool {
	id, err := GetCodec(data)
	if err != nil {
		return false
	}
	codecName, err := Name(id)
	if err != nil {
		return false
	}
	return codecName == name
}
func IsCodec ( name string , data [ ] byte ) bool { id , err := GetCodec ( data ) if err != nil { return false } codecName , err := Name ( id ) if err != nil { return false } return codecName == name }
IsCodec returns true if the data is of the supplied codec prefix, otherwise false
IsCodec returns true if the data is of the supplied codec prefix otherwise false
// Failed to obtain name for ID