예제 #1
0
파일: CFFI.cpp 프로젝트: Shin-NiL/hxcpp
void buffer_append_sub(buffer inBuffer,const char *inStr,int inLen)
{
   ByteArray b = (ByteArray)inBuffer;
   int olen = b->length;
   b->__SetSize(olen+inLen);
   memcpy(b->GetBase()+olen,inStr,inLen);
}
예제 #2
0
파일: CFFI.cpp 프로젝트: Shin-NiL/hxcpp
void buffer_append(buffer inBuffer,const char *inStr)
{
   ByteArray b = (ByteArray)inBuffer;
   int olen = b->length;
   int len = strlen(inStr);
   b->__SetSize(olen+len);
   memcpy(b->GetBase()+olen,inStr,len);

}
예제 #3
0
파일: CFFI.cpp 프로젝트: Shin-NiL/hxcpp
void buffer_set_size(buffer inBuffer,int inLen)
{
   ByteArray b = (ByteArray)inBuffer;
   b->__SetSize(inLen);
}