Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
removeChunk - remove a subrange from a byte array.Remove a chunk of bytes from anywhere in a byte array (in a CkByteData object). Downloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries void ChilkatSample(void) { unsigned char data_bytes[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; CkByteData data; data.append(data_bytes, 10); // Remove a chunk from the middle (or anywhere).. int startIndex; startIndex = 4; int numBytes; numBytes = 4; data.removeChunk(startIndex,numBytes); printf("%s\n",data.getEncoded("hex")); } |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.