// LookupDecoder yields an ipld.Decoder function matching a multicodec indicator code number.
//
// Multicodec indicator numbers are specified in
// https://github.com/multiformats/multicodec/blob/master/table.csv
//
// To be available from this lookup function, an decoder must have been registered
// for this indicator number by an earlier call to the RegisterDecoder function.
LookupDecoder yields an ipld.Decoder function matching a multicodec indicator code number.



To be available from this lookup function, an decoder must have been registered
for this indicator number by an earlier call to the RegisterDecoder function.
// LookupDecoder yields an ipld . Decoder function matching a multicodec indicator code number . // // Multicodec indicator numbers are specified in // https : // github . com / multiformats / multicodec / blob / master / table . csv // // To be available from this lookup function an decoder must have been registered // for this indicator number by an earlier call to the RegisterDecoder function .
func LookupDecoder(indicator uint64) (ipld.Decoder, error) {
	decodeFunc, exists := decoderRegistry[indicator]
	if !exists {
		return nil, fmt.Errorf("no decoder registered for multicodec code %d (0x%x)", indicator, indicator)
	}
	return decodeFunc, nil
}
func LookupDecoder ( indicator uint64 ) ( ipld . Decoder , error ) { decodeFunc , exists := decoderRegistry [ indicator ] if ! exists { return nil , fmt . Errorf ( " " , indicator , indicator ) } return decodeFunc , nil }
LookupDecoder yields an ipld.Decoder function matching a multicodec indicator code number.
LookupDecoder yields an ipld . Decoder function matching a multicodec indicator code number .