Revision history for KeyPgFBMemcopy


Revision [23854]

Last edited on 2020-01-19 12:58:35 by fxm [new page created]
Additions:
The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly, especially depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably when the memory areas do overlap (safer approach).
Deletions:
The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably when the memory areas do overlap (safer approach).


Revision [23850]

Edited on 2020-01-17 02:13:12 by fxm [new page created]
Additions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first (or else specify in argument term the ##[[KeyPgByval|Byval]]## keyword in front of the pointer name). Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.
Deletions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first (or specify in argument term the ##[[KeyPgByval|Byval]]## keyword in front of the pointer name). Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.


Revision [23848]

Edited on 2020-01-16 23:50:00 by fxm [new page created]
Additions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first (or specify in argument term the ##[[KeyPgByval|Byval]]## keyword in front of the pointer name). Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.
Deletions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first (or specify in argument the ##[[KeyPgByval|Byval]]## keyword in front of the pointer name). Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.


Revision [23841]

Edited on 2020-01-16 04:28:37 by fxm [new page created]
Additions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first (or specify in argument the ##[[KeyPgByval|Byval]]## keyword in front of the pointer name). Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.
Deletions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first. Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.


Revision [23839]

Edited on 2020-01-15 11:40:43 by fxm [new page created]
Additions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first. Otherwise, ##**fb_memcopy**## will try to copy the bytes from/to the **pointer variable**'s memory location.
Deletions:
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first. Otherwise, ##**fb_memcopy**## will try to copy the bytes at the **pointer variable**'s memory location.


Revision [23836]

Edited on 2020-01-15 10:37:32 by fxm [new page created]
Additions:
The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably when the memory areas do overlap (safer approach).
**Note:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first. Otherwise, ##**fb_memcopy**## will try to copy the bytes at the **pointer variable**'s memory location.
Deletions:
**NOTE:** The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably when the memory areas do overlap (safer approach).
**NOTE:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first. Otherwise, ##**fb_memcopy**## will try to copy the bytes at the **pointer variable**'s memory location.


Revision [23834]

Edited on 2020-01-15 07:52:57 by fxm [new page created]
Additions:
[//result// =] **fb_memcopy**( //dst//, //src//, //bytes// )
Deletions:
[//result// =] **fb_memcopy**( //dst//, //src//, //bytes// )


Revision [23832]

Edited on 2020-01-15 07:48:53 by fxm [new page created]
Additions:
**NOTE:** In order to copy from/to memory referenced by a ##[[KeyPgPtr|Pointer]]##, it must be dereferenced first. Otherwise, ##**fb_memcopy**## will try to copy the bytes at the **pointer variable**'s memory location.


Revision [23830]

Edited on 2020-01-15 07:39:38 by fxm [new page created]
Additions:
##**fb_memcopy**## copies a given number of bytes from the memory location ##//src//## to the memory location ##//dst//##. Each starting address is taken from a reference to a variable or array element.
Deletions:
##**fb_memcopy**## copies a given number of bytes from the memory location ##//src//## to the memory location ##//dst//##.


Revision [23828]

Edited on 2020-01-15 07:34:32 by fxm [new page created]
Additions:
{{fbdoc item="usage"}}##
[//result// =] **fb_memcopy**( //dst//, //src//, //bytes// )
##**fb_memcopy**## copies a given number of bytes from the memory location ##//src//## to the memory location ##//dst//##.
To avoid overflows, the valid memory areas pointed to by both ##//src//## and ##//dst//## must be at least equal in size to the number of bytes to be copied.
Deletions:
##**fb_memcopy**## copies a given number of bytes from the memory location ##//src//## to the memory location ##//dest//##.
To avoid overflows, the valid memory areas pointed to by both ##//src//## and ##//dest//## must be at least equal in size to the number of bytes to be copied.


Revision [23827]

Edited on 2020-01-15 06:56:34 by fxm [new page created]
Additions:
fb_memcopy(person1.name, *mynameptr, Len(*mynameptr) + 1)
Deletions:
fb_memcopy(person1.name, *mynameptr, Len(*mynameptr))


Revision [23825]

Edited on 2020-01-14 16:23:21 by fxm [new page created]
Additions:
To avoid overflows, the valid memory areas pointed to by both ##//src//## and ##//dest//## must be at least equal in size to the number of bytes to be copied.


Revision [23824]

Edited on 2020-01-14 15:53:30 by fxm [new page created]
Additions:
' using fb_memcopy to copy string
' using fb_memcopy to copy structure
Deletions:
' using memcpy to copy string
' using memcpy to copy structure


Revision [23822]

Edited on 2020-01-14 09:05:24 by fxm [new page created]
Additions:
**NOTE:** The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably when the memory areas do overlap (safer approach).
Deletions:
**NOTE:** The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).


Revision [23820]

Edited on 2020-01-14 08:52:59 by fxm [new page created]
Additions:
**NOTE:** The memory areas must not overlap (otherwise, the copying is not guaranteed to work properly depending on the platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).
Deletions:
**NOTE:** The memory areas must not overlap (otherwise, behavior may be undefined depending on platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).


Revision [23818]

Edited on 2020-01-14 06:27:09 by fxm [new page created]
Additions:
**NOTE:** The memory areas must not overlap (otherwise, behavior may be undefined depending on platform). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).
Deletions:
**NOTE:** The memory areas must not overlap (otherwise, behavior may be undefined). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).


Revision [23817]

Edited on 2020-01-14 04:56:41 by fxm [new page created]
Additions:
**NOTE:** The memory areas must not overlap (otherwise, behavior may be undefined). Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).
Deletions:
**NOTE:** The memory areas must not overlap. Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).


Revision [23814]

Edited on 2020-01-14 04:32:04 by fxm [new page created]
Additions:
**NOTE:** The memory areas must not overlap. Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap (safer approach).
Deletions:
**NOTE:** The memory areas must not overlap. Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap.


Revision [23813]

Edited on 2020-01-14 04:04:55 by fxm [new page created]
Additions:
{{fbdoc item="title" value="FB_MEMCOPY"}}----
**NOTE:** The memory areas must not overlap. Use ##[[KeyPgFBMemmove|fb_memmove]]## preferably if the memory areas do overlap.
Deletions:
{{fbdoc item="title" value="FB_MEMCOPY (IN PROGRESS...)"}}----
**NOTE:** The memory areas must not overlap. Use ##[[KeyPgFBMemmove|fb_memmove]]## if the memory areas do overlap.


Revision [23809]

Edited on 2020-01-14 03:56:05 by fxm [new page in progress...]
Additions:
Type Person
Dim As Zstring * 40 name
Dim As Integer age
End Type
Dim As Zstring Ptr mynameptr = @"Pierre de Fermat"
Dim As Person person1, person2
' using memcpy to copy string
fb_memcopy(person1.name, *mynameptr, Len(*mynameptr))
person1.age = 46
' using memcpy to copy structure
fb_memcopy(person2, person1, Sizeof(Person))
Print person2.name, person2.age
Sleep
%%Output:
%%
Pierre de Fermat 46
%%
Deletions:
%%


Revision [23807]

Edited on 2020-01-14 03:24:04 by fxm [new page in progress...]
Additions:
The underlying type of the objects pointed to by both the source and destination pointers are irrelevant for this function.
The result is a binary copy of the data.
The function does not check for any terminating null character in the source area. It always copies exactly the given number of bytes.


Revision [23801]

The oldest known version of this page was created on 2020-01-14 02:32:30 by fxm [new page in progress...]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode