func (u *Updater) update(args []unsafe.Pointer) error { e := C.rrdUpdate( (*C.char)(u.filename.p()), (*C.char)(u.template.p()), C.int(len(args)), (**C.char)(unsafe.Pointer(&args[0])), ) return makeError(e) }
func (u *Updater) update(_args []string) error { args := makeArgs(_args) defer freeArgs(args) e := C.rrdUpdate( (*C.char)(u.filename.p()), (*C.char)(u.template.p()), C.int(len(args)), &args[0], ) return makeError(e) }