forked from hootrhino/rulex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
byte_order_lib.go
64 lines (57 loc) · 1.01 KB
/
byte_order_lib.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package rulexlib
/*
*
* 字节序处理器
*
*/
import (
"github.com/hootrhino/rulex/typex"
lua "github.com/hootrhino/gopher-lua"
)
//--------------------------------------------------------------------------------------------------
// 字节序转换 TODO: 目前还没时间实现,等下个任务周期
//--------------------------------------------------------------------------------------------------
/*
*
* 处理ABCD序
*
*/
func ABCD(rx typex.RuleX) func(*lua.LState) int {
return func(l *lua.LState) int {
// hexs := l.ToString(2)
return 0
}
}
/*
*
* 处理DCBA序
*
*/
func DCBA(rx typex.RuleX) func(*lua.LState) int {
return func(l *lua.LState) int {
// hexs := l.ToString(2)
return 0
}
}
/*
*
* 处理DCBA序
*
*/
func BADC(rx typex.RuleX) func(*lua.LState) int {
return func(l *lua.LState) int {
// hexs := l.ToString(2)
return 0
}
}
/*
*
* 处理CDAB序
*
*/
func CDAB(rx typex.RuleX) func(*lua.LState) int {
return func(l *lua.LState) int {
// hexs := l.ToString(2)
return 0
}
}