func (rs *ResourceSet) Set(typeID, resID Identifier, langID uint16, data []byte) error {
	if err := checkIdentifier(resID); err != nil {
		return err
	}
	if err := checkIdentifier(typeID); err != nil {
		return err
	}

	rs.set(typeID, resID, langID, data)

	return nil
}
// Set adds or replaces a resource.
//
// typeID is the resource type's identifier.
// It can be either a standard type number (RT_ICON, RT_VERSION, ...) or any type name.
//
// resID is the resource's unique identifier for a given type.
// It can either be an ID starting from 1, or a Name.
//
// A resource ID can have different data depending on the user's locale.
// In this case Set can be called several times with the same resID but a different language ID.
//
// langID can be 0 (neutral), or one of those LCID:
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid
//
// Warning: the ResourceSet takes ownership of the data parameter.
// The caller should not write into it anymore after calling this method.
//
Set adds or replaces a resource.

typeID is the resource type's identifier.
It can be either a standard type number (RT_ICON, RT_VERSION, ...) or any type name.

resID is the resource's unique identifier for a given type.
It can either be an ID starting from 1, or a Name.

A resource ID can have different data depending on the user's locale.
In this case Set can be called several times with the same resID but a different language ID.



the ResourceSet takes ownership of the data parameter.
The caller should not write into it anymore after calling this method.
// Set adds or replaces a resource . // // typeID is the resource type ' s identifier . // It can be either a standard type number ( RT_ICON RT_VERSION ... ) or any type name . // // resID is the resource ' s unique identifier for a given type . // It can either be an ID starting from 1 or a Name . // // A resource ID can have different data depending on the user ' s locale . // In this case Set can be called several times with the same resID but a different language ID . // // langID can be 0 ( neutral ) or one of those LCID : // https : // docs . microsoft . com / en - us / openspecs / windows_protocols / ms - lcid // // Warning : the ResourceSet takes ownership of the data parameter . // The caller should not write into it anymore after calling this method . //
func (rs *ResourceSet) Set(typeID, resID Identifier, langID uint16, data []byte) error {
	if err := checkIdentifier(resID); err != nil {
		return err
	}
	if err := checkIdentifier(typeID); err != nil {
		return err
	}
	rs.set(typeID, resID, langID, data)
	return nil
}
func ( rs * ResourceSet ) Set ( typeID , resID Identifier , langID uint16 , data [ ] byte ) error { if err := checkIdentifier ( resID ) ; err != nil { return err } if err := checkIdentifier ( typeID ) ; err != nil { return err } rs . set ( typeID , resID , langID , data ) return nil }
Set adds or replaces a resource.
Set adds or replaces a resource .