datamove

package
v0.0.0-...-9bd9f91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package datamove provides functions which leverages DSA hardware abilities to copy memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst []byte, src []byte) (ok bool)

Copy copies the content of the source byte slice to the destination byte slice. It returns true if the copy operation is successful, and false otherwise.

func Ready

func Ready() bool

Ready returns true if the device is ready for use.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context represents a context for a memory copy operation. It should be reset before each use. It must be created by NewContext.

func NewContext

func NewContext() *Context

NewContext creates a new context. The context should be reused if possible.

func (*Context) Copy

func (c *Context) Copy(dest, src []byte) bool

Copy copies the content of the source byte slice to the destination byte slice. It returns true if the copy operation is successful, and false otherwise.

func (*Context) CopyCheckError

func (c *Context) CopyCheckError(dest, src []byte) error

CopyCheckError copies the content of the source byte slice to the destination byte slice. It returns nil if the copy operation is successful, and error otherwise.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL