Table of Contents

Method LimitShiftAmount

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

LimitShiftAmount<T>(int)

Limit shift amount to a valid range (将位移量限制在有效范围).

public static int LimitShiftAmount<T>(int shiftAmount) where T : struct

Parameters

shiftAmount int

Shift amount (位移量).

Returns

int

Returns the value of shiftAmount after it has been limited (返回 shiftAmount 被限制后的值).

Type Parameters

T

Target type (目标类型).