主要变更: - RDP 远程桌面:新增 backend/pkg/rdp(RDP 引擎 + credssp/display/rle/trace)、 backend/controller/rdp*(连接/凭证/文件/会话/实时)、frontend RDP 组件与 API - Windows SMB 文件传输:backend/pkg/winsmb - 云账单同步:backend/pkg/billingsync + billing_sync/aliyun_billing,前端账单详情 - Agent CLI Kubernetes 工具:kubernetes_action/get、pod_execute/logs - 服务器导入助手:server_import_helpers、ImportCredentialSettings - 国际化与组件重构(cloud/deploy/monitor/server/system 等多模块) - 清理编译产物二进制:移除 backend/server、backend/agent/bin/aiops-agent-* - .gitignore:新增 backend/agent/ 与 .cache/(避免 334MB go-build 缓存误入库) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
432 B
Go
29 lines
432 B
Go
package rle
|
|
|
|
import "unsafe"
|
|
|
|
func CVAL(p *[]uint8) int {
|
|
a := int((*p)[0])
|
|
*p = (*p)[1:]
|
|
return a
|
|
}
|
|
|
|
func CVAL2(p *[]uint8, v *uint16) {
|
|
*v = *((*uint16)(unsafe.Pointer(&(*p)[0])))
|
|
*p = (*p)[2:]
|
|
}
|
|
|
|
func CVAL3(p *[]uint8, v *[3]uint8) {
|
|
(*v)[0] = (*p)[0]
|
|
(*v)[1] = (*p)[1]
|
|
(*v)[2] = (*p)[2]
|
|
*p = (*p)[3:]
|
|
}
|
|
|
|
func REPEAT(f func(), count *int, x *int, width int) {
|
|
for *count > 0 && *x < width {
|
|
f()
|
|
*count--
|
|
*x++
|
|
}
|
|
} |