memory/ arrays.bi

Summary
memory/ arrays.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext
Functions
copyArrayCopies an Array of simple types rapidly.
sliceArrayCopies a portion of an Array into a new array.

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

ext

Summary
Functions
copyArrayCopies an Array of simple types rapidly.
sliceArrayCopies a portion of an Array into a new array.

Functions

copyArray

declare sub copyArray overload (src() as fbext_TypeName(T_) ,
dest() as fbext_TypeName(T_) ,
byval amount_ as uinteger)

Copies an Array of simple types rapidly.

Parameters

src()array to copy.
dest()array to hold copy of src, dest() will be overwritten.
amount_number of elements to copy from element 0.

sliceArray

declare sub sliceArray overload (src() as fbext_TypeName(T_) ,
dest() as fbext_TypeName(T_) ,
byval start_ as uinteger,
byval end_ as uinteger)

Copies a portion of an Array into a new array.

Parameters

src()the array to slice.
dest()the array to hold the sliced information, will be overwritten.
start_the element in src() to start the slice.
end_the element in src() to stop the slice.
declare sub copyArray overload (src() as fbext_TypeName(T_) ,
dest() as fbext_TypeName(T_) ,
byval amount_ as uinteger)
Copies an Array of simple types rapidly.
declare sub sliceArray overload (src() as fbext_TypeName(T_) ,
dest() as fbext_TypeName(T_) ,
byval start_ as uinteger,
byval end_ as uinteger)
Copies a portion of an Array into a new array.