메소드 | 설명 | |
---|---|---|
AlignToMultipleOf ( this value, int alignment ) : int |
Aligns value to the next multiple of alignment. If the value equals an alignment multiple then it's returned without changes. No branching :D |
|
AlignToMultipleOf ( this value, long alignment ) : long |
Aligns value to the next multiple of alignment. If the value equals an alignment multiple then it's returned without changes. No branching :D |
메소드 | 설명 | |
---|---|---|
IsPowerOfTwo ( this n ) : bool | ||
Kilobytes ( this value ) : int | ||
Log2 ( this i ) : int | ||
Megabytes ( this value ) : int |
public static AlignToMultipleOf ( this value, int alignment ) : int | ||
value | this | |
alignment | int | |
리턴 | int |
public static AlignToMultipleOf ( this value, long alignment ) : long | ||
value | this | |
alignment | long | |
리턴 | long |