Function Bin2Mem() Foundation

Copies a binary string to a memory address.

Bin2Mem( <cString>, <nAddress> )
The binary string to copy.
A numeric value with the address of the memory to copy the string to.

The function Bin2Mem() copies a binary string to a certain address in memory. The function is most commonly used in conjunction with API functions operating on memory buffers owned by the operating system.

Note regarding NULL-termination: Exactly Len(cString) Bytes from the binary string are copied to the specified memory address. If a NULL terminator is required at the end of string, it must already be a part of the string passed to Bin2Mem().


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.