github.com/15mga/kiwi@v0.0.2-0.20240324021231-b95d5c3ac751/tmp.go (about) 1 package kiwi 2 3 var Mod = TSvcCode(1000) 4 5 func MergeSvcCode(svc TSvc, code TCode) TSvcCode { 6 return svc*Mod + TSvcCode(code) 7 } 8 9 func SplitSvcCode(sc TSvcCode) (TSvc, TCode) { 10 return sc / Mod, TCode(sc % Mod) 11 }