@@ -13,34 +13,39 @@ public BitLuaLibrary(IPlatformLuaLibEnv luaLibsImpl, ApiContainer apiContainer,
13
13
14
14
public override string Name => "bit" ;
15
15
16
+ [ LuaDeprecatedMethod ]
16
17
[ LuaMethodExample ( "local uibitban = bit.band( 1000, 4 );" ) ]
17
18
[ LuaMethod ( "band" , "Bitwise AND of 'val' against 'amt'" ) ]
18
19
public static uint Band ( uint val , uint amt )
19
20
{
20
21
return val & amt ;
21
22
}
22
23
24
+ [ LuaDeprecatedMethod ]
23
25
[ LuaMethodExample ( "local uibitbno = bit.bnot( 1000 );" ) ]
24
26
[ LuaMethod ( "bnot" , "Bitwise NOT of 'val'" ) ]
25
27
public static uint Bnot ( uint val )
26
28
{
27
29
return ~ val ;
28
30
}
29
31
32
+ [ LuaDeprecatedMethod ]
30
33
[ LuaMethodExample ( "local uibitbor = bit.bor( 1000, 4 );" ) ]
31
34
[ LuaMethod ( "bor" , "Bitwise OR of 'val' against 'amt'" ) ]
32
35
public static uint Bor ( uint val , uint amt )
33
36
{
34
37
return val | amt ;
35
38
}
36
39
40
+ [ LuaDeprecatedMethod ]
37
41
[ LuaMethodExample ( "local uibitbxo = bit.bxor( 1000, 4 );" ) ]
38
42
[ LuaMethod ( "bxor" , "Bitwise XOR of 'val' against 'amt'" ) ]
39
43
public static uint Bxor ( uint val , uint amt )
40
44
{
41
45
return val ^ amt ;
42
46
}
43
47
48
+ [ LuaDeprecatedMethod ]
44
49
[ LuaMethodExample ( "local uibitlsh = bit.lshift( 1000, 4 );" ) ]
45
50
[ LuaMethod ( "lshift" , "Logical shift left of 'val' by 'amt' bits" ) ]
46
51
public static uint Lshift ( uint val , int amt )
@@ -62,6 +67,7 @@ public static uint Ror(uint val, int amt)
62
67
return ( val >> amt ) | ( val << ( 32 - amt ) ) ;
63
68
}
64
69
70
+ [ LuaDeprecatedMethod ]
65
71
[ LuaMethodExample ( "local uibitrsh = bit.rshift( 1000, 4 );" ) ]
66
72
[ LuaMethod ( "rshift" , "Logical shift right of 'val' by 'amt' bits" ) ]
67
73
public static uint Rshift ( uint val , int amt )
0 commit comments