Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 CopyMemoryString

Syntax

Result = CopyMemoryString(*String [, @*DestinationMemoryID])
Description
For advanced user only. Copy the String at the specified address to the destination memory address if specified, or at the end of the current buffer if omitted. If *DestinationMemoryID is specified, the internal buffer pointer is resetted the new value. The internal pointer is automatically updated after a copy, so it's very handy to do a stream copy of strings, while keeping the pointer control. This is command is especially optimized to manipulated memory text buffer extremely quickly.

Example:
  *Buffer = AllocateMemory(1000)
  *Pointer = *Buffer
  CopyMemoryString("Hello", @*Pointer)
  CopyMemoryString(" World")  ; This one will be put just after "Hello"
  *Pointer-2                  ; Come back from 2 characters (on the 'l' of 'World')
  CopyMemoryString("LD")      ; Finally the last letter will be uppercase
  Debug PeekS(*Buffer)

Supported OS

Windows, AmigaOS, Linux

<- CopyMemory() - Memory Index - FreeMemory() ->



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved