BlockCopy()

Buffer::BlockCopy(const uint8_t *, int, uint8_t *, int, int) method

Copies a specified number of bytes from source buffer to destination buffer.

static void System::Buffer::BlockCopy(const uint8_t *src, int srcOffset, uint8_t *dst, int dstOffset, int count)

Arguments

ParameterTypeDescription
srcconst uint8_t *Pointer to the source buffer
srcOffsetintA byte offset in source buffer at which copying starts
dstuint8_t *Pointer to the destination buffer
dstOffsetintA byte offset in the destination buffer at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const SharedPtr<Array<TSrc>>&, int, const SharedPtr<Array<TDst>>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,typename TDst> static void System::Buffer::BlockCopy(const SharedPtr<Array<TSrc>> &src, int srcOffset, const SharedPtr<Array<TDst>> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source array
TDstThe type of elements of the destination array

Arguments

ParameterTypeDescription
srcconst SharedPtr<Array<TSrc>>&The source array
srcOffsetintA byte offset in the tho source array at which copying starts
dstconst SharedPtr<Array<TDst>>&The destination array
dstOffsetintA byte offset in the destination array at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const System::Details::ArrayView<TSrc>&, int, const System::Details::ArrayView<TDst>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,typename TDst> static void System::Buffer::BlockCopy(const System::Details::ArrayView<TSrc> &src, int srcOffset, const System::Details::ArrayView<TDst> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source array view
TDstThe type of elements of the destination array view

Arguments

ParameterTypeDescription
srcconst System::Details::ArrayView<TSrc>&The source array view
srcOffsetintA byte offset in the tho source array view at which copying starts
dstconst System::Details::ArrayView<TDst>&The destination array view
dstOffsetintA byte offset in the destination array view at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const SharedPtr<Array<TSrc>>&, int, const System::Details::ArrayView<TDst>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,typename TDst> static void System::Buffer::BlockCopy(const SharedPtr<Array<TSrc>> &src, int srcOffset, const System::Details::ArrayView<TDst> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source array
TDstThe type of elements of the destination array view

Arguments

ParameterTypeDescription
srcconst SharedPtr<Array<TSrc>>&The source array
srcOffsetintA byte offset in the tho source array at which copying starts
dstconst System::Details::ArrayView<TDst>&The destination array view
dstOffsetintA byte offset in the destination array view at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const System::Details::ArrayView<TSrc>&, int, const SharedPtr<Array<TDst>>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,typename TDst> static void System::Buffer::BlockCopy(const System::Details::ArrayView<TSrc> &src, int srcOffset, const SharedPtr<Array<TDst>> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source array view
TDstThe type of elements of the destination array

Arguments

ParameterTypeDescription
srcconst System::Details::ArrayView<TSrc>&The source array view
srcOffsetintA byte offset in the tho source array view at which copying starts
dstconst SharedPtr<Array<TDst>>&The destination array
dstOffsetintA byte offset in the destination array at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const System::Details::StackArray<TSrc, NS>&, int, const System::Details::StackArray<TDst, ND>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,std::size_t,typename TDst,std::size_t> static void System::Buffer::BlockCopy(const System::Details::StackArray<TSrc, NS> &src, int srcOffset, const System::Details::StackArray<TDst, ND> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source stack array
NSThe size of the source stack array
TDstThe type of elements of the destination stack array
NDThe size of the destination stack array

Arguments

ParameterTypeDescription
srcconst System::Details::StackArray<TSrc, NS>&The source stack array
srcOffsetintA byte offset in the tho source stack array at which copying starts
dstconst System::Details::StackArray<TDst, ND>&The destination stack array
dstOffsetintA byte offset in the destination stack array at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const SharedPtr<Array<TSrc>>&, int, const System::Details::StackArray<TDst, ND>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,typename TDst,std::size_t> static void System::Buffer::BlockCopy(const SharedPtr<Array<TSrc>> &src, int srcOffset, const System::Details::StackArray<TDst, ND> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source array
TDstThe type of elements of the destination stack array
NDThe size of the destination stack array

Arguments

ParameterTypeDescription
srcconst SharedPtr<Array<TSrc>>&The source array
srcOffsetintA byte offset in the tho source array at which copying starts
dstconst System::Details::StackArray<TDst, ND>&The destination stack array
dstOffsetintA byte offset in the destination stack array at which to start inserting data
countintThe number of bytes to copy

Buffer::BlockCopy(const System::Details::StackArray<TSrc, NS>&, int, const SharedPtr<Array<TDst>>&, int, int) method

Interprets two specified typed arrays as raw arrays of bytes and copies data from one of them to another.

template<typename TSrc,std::size_t,typename TDst> static void System::Buffer::BlockCopy(const System::Details::StackArray<TSrc, NS> &src, int srcOffset, const SharedPtr<Array<TDst>> &dst, int dstOffset, int count)

Template parameters

ParameterDescription
TSrcThe type of elements of the source stack array
NSThe size of the source stack array
TDstThe type of elements of the destination array

Arguments

ParameterTypeDescription
srcconst System::Details::StackArray<TSrc, NS>&The source stack array
srcOffsetintA byte offset in the tho source stack array at which copying starts
dstconst SharedPtr<Array<TDst>>&The destination array
dstOffsetintA byte offset in the destination array at which to start inserting data
countintThe number of bytes to copy

See Also