func HugePageSizeFromResourceName(name v1.ResourceName) (resource.Quantity, error) {
	if !IsHugePageResourceName(name) {
		return resource.Quantity{}, fmt.Errorf("resource name: %s is an invalid hugepage name", name)
	}
	pageSize := strings.TrimPrefix(string(name), v1.ResourceHugePagesPrefix)
	return resource.ParseQuantity(pageSize)
}
// HugePageSizeFromResourceName returns the page size for the specified huge page
// resource name.  If the specified input is not a valid huge page resource name
// an error is returned.
HugePageSizeFromResourceName returns the page size for the specified huge page
resource name.  If the specified input is not a valid huge page resource name
an error is returned.
// HugePageSizeFromResourceName returns the page size for the specified huge page // resource name . If the specified input is not a valid huge page resource name // an error is returned .
func HugePageSizeFromResourceName(name v1.ResourceName) (resource.Quantity, error) {
	if !IsHugePageResourceName(name) {
		return resource.Quantity{}, fmt.Errorf("resource name: %s is an invalid hugepage name", name)
	}
	pageSize := strings.TrimPrefix(string(name), v1.ResourceHugePagesPrefix)
	return resource.ParseQuantity(pageSize)
}
func HugePageSizeFromResourceName ( name v1 . ResourceName ) ( resource . Quantity , error ) { if ! IsHugePageResourceName ( name ) { return resource . Quantity { } , fmt . Errorf ( " " , name ) } pageSize := strings . TrimPrefix ( string ( name ) , v1 . ResourceHugePagesPrefix ) return resource . ParseQuantity ( pageSize ) }
HugePageSizeFromResourceName returns the page size for the specified huge page
resource name.
HugePageSizeFromResourceName returns the page size for the specified huge page resource name .