From 1df33ffacf98f09a33969a8c8ed4078247524d29 Mon Sep 17 00:00:00 2001 From: chenshijun <chenshijun@aiotlink.com> Date: 星期五, 09 十月 2020 14:27:45 +0800 Subject: [PATCH] attach增加超时 --- shmMemory.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shmMemory.go b/shmMemory.go index c7806df..c85ae1e 100644 --- a/shmMemory.go +++ b/shmMemory.go @@ -21,7 +21,7 @@ import "C" import "unsafe" -func memcpy(dest, src []byte) int { +func Memcpy(dest, src []byte) int { n := len(src) if len(dest) < len(src) { n = len(dest) @@ -33,7 +33,7 @@ return n } -func memmove(dest, src []byte) int { +func Memmove(dest, src []byte) int { n := len(src) if len(dest) < len(src) { n = len(dest) -- Gitblit v1.8.0