C# 클래스 RampUp.Util

파일 보기 프로젝트 열기: Scooletz/RampUp

공개 메소드들

메소드 설명
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

메소드 상세

AlignToMultipleOf() 공개 정적인 메소드

Aligns value to the next multiple of alignment. If the value equals an alignment multiple then it's returned without changes.
No branching :D
public static AlignToMultipleOf ( this value, int alignment ) : int
value this
alignment int
리턴 int

AlignToMultipleOf() 공개 정적인 메소드

Aligns value to the next multiple of alignment. If the value equals an alignment multiple then it's returned without changes.
No branching :D
public static AlignToMultipleOf ( this value, long alignment ) : long
value this
alignment long
리턴 long