C# 클래스 GarrysModLuaShared.bit

The bitwise library contains useful functions for bitwise operations.
파일 보기 프로젝트 열기: OmegaExtern/gmod-csharp-binary-module

공개 메소드들

메소드 설명
arshift ( LuaState luaState, double value, double shiftCount ) : double

Returns the arithmetically shifted value.

band ( LuaState luaState, double value ) : double

Returns the bitwise and of all values specified.

bnot ( LuaState luaState, double value ) : double

Returns the bitwise not of the value.

bor ( LuaState luaState, double value ) : double

Returns the bitwise OR of all values specified.

bswap ( LuaState luaState, double value ) : double

Swaps the byte order.

bxor ( LuaState luaState, double value ) : double

Returns the bitwise xor of all values specified.

lshift ( LuaState luaState, double value, double shiftCount ) : double

Returns the left shifted value.

rol ( LuaState luaState, double value, double shiftCount ) : double

Returns the left rotated value.

ror ( LuaState luaState, double value, double shiftCount ) : double

Returns the right rotated value.

rshift ( LuaState luaState, double value, double shiftCount ) : double

Returns the right shifted value.

tobit ( LuaState luaState, double value ) : double

Normalizes the specified value and clamps it in the range of a signed 32bit integer.

tohex ( LuaState luaState, double value, double digits = 8 ) : string

Returns the hexadecimal representation of the number with the specified digits.

메소드 상세

arshift() 공개 정적인 메소드

Returns the arithmetically shifted value.
public static arshift ( LuaState luaState, double value, double shiftCount ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
shiftCount double Amount of bits to shift.
리턴 double

band() 공개 정적인 메소드

Returns the bitwise and of all values specified.
public static band ( LuaState luaState, double value ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
리턴 double

bnot() 공개 정적인 메소드

Returns the bitwise not of the value.
public static bnot ( LuaState luaState, double value ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be inverted.
리턴 double

bor() 공개 정적인 메소드

Returns the bitwise OR of all values specified.
public static bor ( LuaState luaState, double value ) : double
luaState LuaState Pointer to lua_State struct.
value double The first value.
리턴 double

bswap() 공개 정적인 메소드

Swaps the byte order.
public static bswap ( LuaState luaState, double value ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be byte swapped.
리턴 double

bxor() 공개 정적인 메소드

Returns the bitwise xor of all values specified.
public static bxor ( LuaState luaState, double value ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
리턴 double

lshift() 공개 정적인 메소드

Returns the left shifted value.
public static lshift ( LuaState luaState, double value, double shiftCount ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
shiftCount double Amount of bits to shift left by.
리턴 double

rol() 공개 정적인 메소드

Returns the left rotated value.
public static rol ( LuaState luaState, double value, double shiftCount ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
shiftCount double Amount of bits to rotate left by.
리턴 double

ror() 공개 정적인 메소드

Returns the right rotated value.
public static ror ( LuaState luaState, double value, double shiftCount ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
shiftCount double Amount of bits to rotate right by.
리턴 double

rshift() 공개 정적인 메소드

Returns the right shifted value.
public static rshift ( LuaState luaState, double value, double shiftCount ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be manipulated.
shiftCount double Amount of bits to shift right by.
리턴 double

tobit() 공개 정적인 메소드

Normalizes the specified value and clamps it in the range of a signed 32bit integer.
public static tobit ( LuaState luaState, double value ) : double
luaState LuaState Pointer to lua_State struct.
value double The value to be normalized.
리턴 double

tohex() 공개 정적인 메소드

Returns the hexadecimal representation of the number with the specified digits.
public static tohex ( LuaState luaState, double value, double digits = 8 ) : string
luaState LuaState Pointer to lua_State struct.
value double The value to be converted.
digits double The number of digits. Optional.
리턴 string