前 言
- 16 -
11.12.1.31 int64:ror(numbits) ................................................................................................. 232
11.12.1.32 int64:bswap() ......................................................................................................... 232
11.12.2 UInt64 .................................................................................................................................... 232
11.12.2.1 UInt64.decode(string,[endian]) ............................................................................... 232
11.12.2.2 UInt64.new([value],[highvalue]) .............................................................................. 233
11.12.2.3 UInt64.max() ............................................................................................................... 233
11.12.2.4 UInt64.min()................................................................................................................ 233
11.12.2.5 UInt64.fromhex(hex)................................................................................................... 234
11.12.2.6 uint64:encode([endian]) .......................................................................................... 234
11.12.2.7 uint64:_call() ............................................................................................................ 234
11.12.2.8 uint64:tonumber() ................................................................................................... 235
11.12.2.9 uint64:_tostring() ..................................................................................................... 235
11.12.2.10 uint64:tohex([numbytes]) ...................................................................................... 235
11.12.2.11 uint64:higher() ....................................................................................................... 235
11.12.2.12 uint64:lower() ........................................................................................................ 236
11.12.2.13 uint64:_unm() ........................................................................................................ 236
11.12.2.14 uint64:_add() ......................................................................................................... 236
11.12.2.15 uint64:_sub() .......................................................................................................... 236
11.12.2.16 uint64:_mul() ......................................................................................................... 236
11.12.2.17 uint64:_div() .......................................................................................................... 236
11.12.2.18 uint64:_mod() ........................................................................................................ 237
11.12.2.19 uint64:_pow() ........................................................................................................ 237
11.12.2.20 uint64:_eq() ........................................................................................................... 237
11.12.2.21 uint64:_lt() ............................................................................................................. 237
11.12.2.22 uint64:_le() ............................................................................................................ 237
11.12.2.23 uint64:bnot() .......................................................................................................... 238
11.12.2.24 uint64:band() ......................................................................................................... 238
11.12.2.25 uint64:bor() ............................................................................................................ 238
11.12.2.26 uint64:bxor() .......................................................................................................... 238
11.12.2.27 uint64:lshift(numbits) ............................................................................................ 239
11.12.2.28 uint64:rshift(numbits) ............................................................................................ 239
11.12.2.29 uint64:arshift(numbits) .......................................................................................... 239
11.12.2.30 uint64:rol(numbits) ................................................................................................ 240
11.12.2.31 uint64:ror(numbits) ............................................................................................... 240
11.12.2.32 uint64:bswap() ....................................................................................................... 240
11.13 二进制编码/解码支持 ..................................................................................................................... 241
11.13.1 结构 ....................................................................................................................................... 243
11.13.1.1 Struct.pack(format,value) ........................................................................................ 243
11.13.1.2 Struct.unpack(format,struct,[begin]) .................................................................... 243
11.13.1.3 Struct.size(format) ...................................................................................................... 244
11.13.1.4 Struct.values(format) .................................................................................................. 244
11.13.1.5 Struct.tohex(bytestring,[smallcase],[separator]) .................................................. 244
11.13.1.6 Struct.fromhex(hexbytes, [separator]) ....................................................................... 245
11.14 GLib 正则表达式 ............................................................................................................................ 245
11.14.1 GRegex ................................................................................................................................... 246
11.14.1.1 Notes ........................................................................................................................... 246
11.14.1.2 GRegex.new(pattern) .................................................................................................. 247
11.14.1.3 GRegex.flags([table]) ................................................................................................... 247
11.14.1.4 GRegex.compile_flags([table]) .................................................................................... 248
11.14.1.5 GRegex.match_flags([table]) ...................................................................................... 248
11.14.1.6 GRegex.match(subject,pattern,[init],[cf],[ef]) ................................................ 248
11.14.1.7 GRegex.find(subject,pattern,[init],[cf],[ef]) .................................................... 249
11.14.1.8 GRegex.gmatch(subject,pattern,[init],[cf],[ef]) .............................................. 250