sys_bufmove
Previous Topic  Next Topic 

Synopsis:

        sys_bufcopy(buf_dest,dest_offs,buf_source,source_offs,num_bytes)

Arguments:

      buf_dest           -  The destination buffer handle

      dest_offs          -  The byte offset in the destination buffer

      buf_source       -  The source buffer handle

      source_offs      -  The byte offset in the source buffer

      num_bytes       - The number of bytes to copy


Description:    This function copies  num_bytes bytes from the buffer specified by buf_source at offset source_offs to the buffer specified by buf_dest at offset dest_offs.    


Return Value:

Will return 0 on success or -1 if an invalid handle or and attempt is made to read or write beyond the start or end of either buffer.