/***************************************************************************
                            qt_QByteArray.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QByteArray.h"
}

#include <qcstring.h>

qt_QByteArray * qt_new_QByteArray(){
	return (qt_QByteArray *) new QByteArray();
}
qt_QByteArray * qt_new_QByteArray1(int size){
	return (qt_QByteArray *) new QByteArray((int)size);
}
qt_QByteArray * qt_new_QByteArray2(qt_QByteArray* a){
	return (qt_QByteArray *) new QByteArray((QByteArray&)* (QByteArray*)a);
}
void qt_del_QByteArray( qt_QByteArray* p ){
	delete (QByteArray*) p;
}
char* qt_QByteArray_data( qt_QByteArray* instPointer){
	return (char*) ((QByteArray*)instPointer)->data();
}
unsigned int qt_QByteArray_nrefs( qt_QByteArray* instPointer){
	return (unsigned int) ((QByteArray*)instPointer)->nrefs();
}
unsigned int qt_QByteArray_size( qt_QByteArray* instPointer){
	return (unsigned int) ((QByteArray*)instPointer)->size();
}
unsigned int qt_QByteArray_count( qt_QByteArray* instPointer){
	return (unsigned int) ((QByteArray*)instPointer)->count();
}
int qt_QByteArray_isEmpty( qt_QByteArray* instPointer){
	return (int) ((QByteArray*)instPointer)->isEmpty();
}
int qt_QByteArray_isNull( qt_QByteArray* instPointer){
	return (int) ((QByteArray*)instPointer)->isNull();
}
int qt_QByteArray_resize( qt_QByteArray* instPointer,unsigned int size){
	return (int) ((QByteArray*)instPointer)->resize((uint)size);
}
int qt_QByteArray_truncate( qt_QByteArray* instPointer,unsigned int pos){
	return (int) ((QByteArray*)instPointer)->truncate((uint)pos);
}
int qt_QByteArray_fill( qt_QByteArray* instPointer,char d, int size){
	return (int) ((QByteArray*)instPointer)->fill((char&)d, (int)size);
}
void qt_QByteArray_detach( qt_QByteArray* instPointer){
	((QByteArray*)instPointer)->detach();
	return;
}
qt_QByteArray* qt_QByteArray_copy( qt_QByteArray* instPointer){
	return (qt_QByteArray*)new QByteArray(((QByteArray*)instPointer)->copy());
}
qt_QByteArray* qt_QByteArray_assign( qt_QByteArray* instPointer,qt_QByteArray* a){
	return (qt_QByteArray*) ( QByteArray *)&((QByteArray*)instPointer)->assign((QByteArray&)* (QByteArray*)a);
}
qt_QByteArray* qt_QByteArray_assign1( qt_QByteArray* instPointer,char* a, unsigned int n){
	return (qt_QByteArray*) ( QByteArray *)&((QByteArray*)instPointer)->assign((char*)a, (uint)n);
}
qt_QByteArray* qt_QByteArray_duplicate( qt_QByteArray* instPointer,qt_QByteArray* a){
	return (qt_QByteArray*) ( QByteArray *)&((QByteArray*)instPointer)->duplicate((QByteArray&)* (QByteArray*)a);
}
qt_QByteArray* qt_QByteArray_duplicate1( qt_QByteArray* instPointer,char* a, unsigned int n){
	return (qt_QByteArray*) ( QByteArray *)&((QByteArray*)instPointer)->duplicate((char*)a, (uint)n);
}
qt_QByteArray* qt_QByteArray_setRawData( qt_QByteArray* instPointer,char* a, unsigned int n){
	return (qt_QByteArray*) ( QByteArray *)&((QByteArray*)instPointer)->setRawData((char*)a, (uint)n);
}
void qt_QByteArray_resetRawData( qt_QByteArray* instPointer,char* a, unsigned int n){
	((QByteArray*)instPointer)->resetRawData((char*)a, (uint)n);
	return;
}
int qt_QByteArray_find( qt_QByteArray* instPointer,int d, unsigned int i){
	return (int) ((QByteArray*)instPointer)->find((char&)d, (uint)i);
}
int qt_QByteArray_contains( qt_QByteArray* instPointer,int d){
	return (int) ((QByteArray*)instPointer)->contains((char&)d);
}
void qt_QByteArray_sort( qt_QByteArray* instPointer){
	((QByteArray*)instPointer)->sort();
	return;
}
int qt_QByteArray_bsearch( qt_QByteArray* instPointer,int d){
	return (int) ((QByteArray*)instPointer)->bsearch((char&)d);
}
char qt_QByteArray_at( qt_QByteArray* instPointer,unsigned int i){
	return (char) ((QByteArray*)instPointer)->at((uint)i);
}
//Iterator* qt_QByteArray_begin( qt_QByteArray* instPointer){
//	return (Iterator*) ((QByteArray*)instPointer)->begin();
//}
//Iterator* qt_QByteArray_end( qt_QByteArray* instPointer){
//	return (Iterator*) ((QByteArray*)instPointer)->end();
//}
int qt_QByteArray_begin1( qt_QByteArray* instPointer){
	return (int) ((QByteArray*)instPointer)->begin();
}
int qt_QByteArray_end1( qt_QByteArray* instPointer){
	return (int) ((QByteArray*)instPointer)->end();
}
// qt_QByteArray_QArray( qt_QByteArray* instPointer,int arg1, int arg2){
//	return () ((QByteArray*)instPointer)->protected_QArray((int)arg1, (int)arg2);
//}


