/* DO NOT EDIT THIS FILE - it is machine generated (JCGO_116) */

#ifdef JCGO_SEPARATED
#define JCGO_116
#include "jcgortl.h"
#include "Main.h"
#endif

#ifdef JCGO_116

#ifdef CHKALL_java_nio_ByteBuffer
#include "jcgobchk.h"
#endif

JCGO_NOSEP_INLINE void CFASTCALL
java_nio_ByteBuffer__void( java_nio_ByteBuffer This )
{
 JCGO_FIELD_NZACCESS(This, endian)= JCGO_CLINIT_VARACC(java_nio_ByteOrder__class,
  java_nio_ByteOrder__BIG_ENDIAN0);
}

JCGO_NOSEP_INLINE jint CFASTCALL
java_nio_ByteBuffer__compareTo__Lo( java_nio_ByteBuffer This, java_lang_Object
 obj )
{
 {
  java_nio_ByteBuffer other;
  jint num;
  jint pos_this;
  jint pos_other;
  jint jcgo_rcvrI1;
  other= (java_nio_ByteBuffer)JCGO_CAST_OBJECT0(OBJT_java_nio_ByteBufferImpl,
   MAXT_java_nio_ByteBufferImpl, obj);
  num= (jcgo_rcvrI1= (java_nio_Buffer__remaining__(
   (java_nio_Buffer)This)), java_lang_Math__min__II(
   jcgo_rcvrI1, (JCGO_CALL_FINALF(other) java_nio_Buffer__remaining__(
   (java_nio_Buffer)other))));
  pos_this= (java_nio_Buffer__position__(
   (java_nio_Buffer)This));
  pos_other= (java_nio_Buffer__position__(
   (java_nio_Buffer)other));
  {
   jint count;
   count= 0;
   for (; count < num; count++)
   {
    jbyte a;
    jbyte b;
    a= (java_nio_ByteBufferImpl__get__I(
     (java_nio_ByteBufferImpl)This, pos_this++));
    b= (java_nio_ByteBufferImpl__get__I(
     (java_nio_ByteBufferImpl)other, pos_other++));
    if (a == b)
    {
     continue;
    }
    if (a < b)
    {
     return (-(jint)1);
    }
    return (jint)1;
   }
  }
  return (jcgo_rcvrI1= (java_nio_Buffer__remaining__(
   (java_nio_Buffer)This)), jcgo_rcvrI1 - (java_nio_Buffer__remaining__(
   (java_nio_Buffer)other)));
 }
}

JCGO_NOSEP_INLINE java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__this__IIIIL8d4dvBAI( java_nio_ByteBuffer This,
 java_lang_Object address, jbyteArr backing_buffer, jint capacity,
 jint limit, jint position, jint mark, jint array_offset )
{
 {
  (java_nio_Buffer__this__IIIIL8d4dv((java_nio_Buffer)This, address,
   capacity, limit, position, mark));
  java_nio_ByteBuffer__void(This);
  JCGO_FIELD_NZACCESS(This, backing_buffer)= backing_buffer;
  JCGO_FIELD_NZACCESS(This, array_offset)= array_offset;
 }
 return This;
}

JCGO_NOSEP_INLINE java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__allocate__I( jint capacity )
{
 {
  return (java_nio_ByteBuffer__wrap__BAII(
   (jbyteArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jbyte), 0, capacity),
   0, capacity));
 }
}

JCGO_NOSEP_STATIC java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__wrap__BAIIX( jbyteArr array_7w5, jint offset,
 jint length, java_nio_ByteBufferImpl jcgo_stackparam )
{
 {
  return (java_nio_ByteBuffer)(java_nio_ByteBufferImpl__this__BAIIIIIZ(
   jcgo_stackparam, array_7w5, 0, JCGO_ARRAY_LENGTH(array_7w5), offset +
   length, offset, (-(jint)1), (jboolean)jfalse));
 }
}

JCGO_NOSEP_FRWINL java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__wrap__BAII( jbyteArr array_7w5, jint offset,
 jint length )
{
 return java_nio_ByteBuffer__wrap__BAIIX(
  array_7w5, offset, length, (java_nio_ByteBufferImpl)jcgo_newObject((jvtable)&java_nio_ByteBufferImpl_methods));
}

JCGO_NOSEP_INLINE java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__wrap__BA( jbyteArr array_7w5 )
{
 {
  return (java_nio_ByteBuffer__wrap__BAII(
   array_7w5, 0, JCGO_ARRAY_LENGTH(array_7w5)));
 }
}

JCGO_NOSEP_FRWINL java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__get__BA( java_nio_ByteBuffer This, jbyteArr dst
 )
{
 {
  return (java_nio_ByteBufferImpl__get__BAII(
   (java_nio_ByteBufferImpl)This, dst, 0, JCGO_ARRAY_LENGTH(dst)));
 }
}

JCGO_NOSEP_INLINE java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__put__BA( java_nio_ByteBuffer This, jbyteArr src
 )
{
 {
  return (java_nio_ByteBufferImpl__put__BAII(
   (java_nio_ByteBufferImpl)This, src, 0, JCGO_ARRAY_LENGTH(src)));
 }
}

JCGO_NOSEP_FRWINL jboolean CFASTCALL
java_nio_ByteBuffer__hasArray__( java_nio_ByteBuffer This )
{
 {
  return (jboolean)(JCGO_FIELD_NZACCESS(This, backing_buffer) != jnull &&
   !(java_nio_ByteBufferImpl__isReadOnly__(
   (java_nio_ByteBufferImpl)This)));
 }
}

JCGO_NOSEP_STATIC jbyteArr CFASTCALL
java_nio_ByteBuffer__array__( java_nio_ByteBuffer This )
{
 {
  if (JCGO_FIELD_NZACCESS(This, backing_buffer) == jnull)
  {
   JCGO_THROW_EXC(java_lang_UnsupportedOperationException__new__());
  }
  (java_nio_Buffer__checkIfReadOnly__(
   (java_nio_Buffer)This));
  return JCGO_FIELD_NZACCESS(This, backing_buffer);
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
java_nio_ByteBuffer__arrayOffset__( java_nio_ByteBuffer This )
{
 {
  if (JCGO_FIELD_NZACCESS(This, backing_buffer) == jnull)
  {
   JCGO_THROW_EXC(java_lang_UnsupportedOperationException__new__());
  }
  (java_nio_Buffer__checkIfReadOnly__(
   (java_nio_Buffer)This));
  return JCGO_FIELD_NZACCESS(This, array_offset);
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
java_nio_ByteBuffer__hashCode__( java_nio_ByteBuffer This )
{
 {
  jint hashCode;
  jint multiplier;
  hashCode= (java_nio_ByteBufferImpl__get__I(
   (java_nio_ByteBufferImpl)This, (java_nio_Buffer__position__(
   (java_nio_Buffer)This)))) + (jint)31;
  multiplier= (jint)1;
  {
   jint i;
   i= (java_nio_Buffer__position__(
    (java_nio_Buffer)This)) + (jint)1;
   for (; i < (java_nio_Buffer__limit__(
    (java_nio_Buffer)This)); ++i)
   {
    multiplier*= (jint)31;
    hashCode+= ((java_nio_ByteBufferImpl__get__I(
     (java_nio_ByteBufferImpl)This, i)) + (jint)30) * multiplier;
   }
  }
  return hashCode;
 }
}

JCGO_NOSEP_STATIC jboolean CFASTCALL
java_nio_ByteBuffer__equals__Lo( java_nio_ByteBuffer This, java_lang_Object
 obj )
{
 {
  if (jcgo_instanceOf0(OBJT_java_nio_ByteBufferImpl, MAXT_java_nio_ByteBufferImpl,
   (jObject)obj))
  {
   return (jboolean)((java_nio_ByteBuffer__compareTo__Lo(
    This, (java_lang_Object)((java_nio_ByteBuffer)obj))) == 0);
  }
  return (jboolean)jfalse;
 }
}

JCGO_NOSEP_INLINE java_nio_ByteOrder CFASTCALL
java_nio_ByteBuffer__order__( java_nio_ByteBuffer This )
{
 {
  return JCGO_FIELD_NZACCESS(This, endian);
 }
}

JCGO_NOSEP_STATIC java_nio_ByteBuffer CFASTCALL
java_nio_ByteBuffer__order__L14v1d( java_nio_ByteBuffer This, java_nio_ByteOrder
 endian )
{
 {
  JCGO_FIELD_NZACCESS(This, endian)= endian;
  return This;
 }
}

JCGO_NOSEP_STATIC java_lang_String CFASTCALL
java_nio_ByteBuffer__toString__( java_nio_ByteBuffer This )
{
 {
  jObject jcgo_rcvrL1;
  struct java_lang_StringBuilder_s jcgo_stackobj1;
  struct java_lang_String_s jcgo_stackobj2;
  struct java_lang_String_s jcgo_stackobj3;
  struct java_lang_String_s jcgo_stackobj4;
  return java_lang_String__new__L5dy9e(
   java_lang_StringBuilder__append__Ls(
   (jcgo_rcvrL1= (jObject)java_lang_StringBuilder__append__Ls(
   (jcgo_rcvrL1= (jObject)java_lang_StringBuilder__append__Ls(
   (jcgo_rcvrL1= (jObject)java_lang_StringBuilder__append__Ls(
   java_lang_StringBuilder__append__Ls(
   java_lang_StringBuilder__this__(
   JCGO_STACKOBJ_NEW(jcgo_stackobj1, java_lang_StringBuilder_methods)),
   (jcgo_rcvrL1= (jObject)(java_lang_Object__getClass__(
   (java_lang_Object)This)), JCGO_CALL_FINALF((java_lang_Class)jcgo_rcvrL1)
   java_lang_Class__getName__(
   (java_lang_Class)jcgo_rcvrL1))), JCGO_STRREF_OF(jcgo_string2_ByteBffr)),
   java_lang_StringBuilder__append__Ls(
   (java_lang_StringBuilder)jcgo_rcvrL1, (java_lang_String__valueOf__IX(
   (java_nio_Buffer__position__(
   (java_nio_Buffer)This)), JCGO_STACKOBJ_NEW(jcgo_stackobj2, java_lang_String_methods))))),
   JCGO_STRREF_OF(jcgo_string3_ByteBffr)), java_lang_StringBuilder__append__Ls(
   (java_lang_StringBuilder)jcgo_rcvrL1, (java_lang_String__valueOf__IX(
   (java_nio_Buffer__limit__(
   (java_nio_Buffer)This)), JCGO_STACKOBJ_NEW(jcgo_stackobj3, java_lang_String_methods))))),
   JCGO_STRREF_OF(jcgo_string4_ByteBffr)), java_lang_StringBuilder__append__Ls(
   (java_lang_StringBuilder)jcgo_rcvrL1, (java_lang_String__valueOf__IX(
   (java_nio_Buffer__capacity__(
   (java_nio_Buffer)This)), JCGO_STACKOBJ_NEW(jcgo_stackobj4, java_lang_String_methods))))),
   JCGO_STRREF_OF(jcgo_string5_ByteBffr)));
 }
}

JCGO_NOSEP_DATA CONST struct jcgo_methods_s java_nio_ByteBuffer_methods=
{
 JCGO_CLASSREF_OF(java_nio_ByteBuffer__class),
 JCGO_GCJDESCR_ZEROINIT
 OBJT_java_nio_ByteBuffer,
 0,
 NULL,
 JCGO_CLINIT_INIT(0)
 0
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_nio_ByteBuffer_class_s
 java_nio_ByteBuffer__class JCGO_THRD_ATTRNONGC=
{
 {
  &java_lang_Class_methods,
  JCGO_MON_INIT
  JCGO_OBJREF_OF(*(java_lang_Object)&java_nio_ByteBuffer_methods),
  JCGO_STRREF_OF(jcgo_string1_ByteBffr),
  JCGO_CLASSREF_OF(java_nio_Buffer__class),
  ((jObjectArr)JCGO_OBJREF_OF(jcgo_array3_Object)),
  0x401
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype91_GmCnnctn jcgo_array6_ByteBffr=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 23,
 {
  (jbyte)(jchar)106/*'j'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)118/*'v'*/,
   (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)110/*'n'*/,
   (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)46/*'.'*/,
   (jbyte)(jchar)66/*'B'*/, (jbyte)(jchar)121/*'y'*/, (jbyte)(jchar)116/*'t'*/,
   (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)66/*'B'*/, (jbyte)(jchar)117/*'u'*/,
   (jbyte)(jchar)102/*'f'*/, (jbyte)(jchar)102/*'f'*/, (jbyte)(jchar)101/*'e'*/,
   (jbyte)(jchar)114/*'r'*/, (jbyte)(jchar)73/*'I'*/, (jbyte)(jchar)109/*'m'*/,
   (jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)108/*'l'*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype30_Object jcgo_array7_ByteBffr=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 5,
 {
  (jbyte)(jchar)91/*'['*/, (jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)111/*'o'*/,
   (jbyte)(jchar)115/*'s'*/, (jbyte)(jchar)61/*'='*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype30_Object jcgo_array8_ByteBffr=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 5,
 {
  (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)105/*'i'*/,
   (jbyte)(jchar)109/*'m'*/, (jbyte)(jchar)61/*'='*/
 }
};

JCGO_NOSEP_DATA CONST jcgo_arrtype30_Object jcgo_array9_ByteBffr=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 5,
 {
  (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)99/*'c'*/, (jbyte)(jchar)97/*'a'*/,
   (jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)61/*'='*/
 }
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string1_ByteBffr
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array6_ByteBffr),
 0, 19, (jint)0xdf609ceeL
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string2_ByteBffr
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array7_ByteBffr),
 0, 5, (jint)0x536f344L
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string3_ByteBffr
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array8_ByteBffr),
 0, 5, (jint)0x1f59fcdL
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string4_ByteBffr
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array9_ByteBffr),
 0, 5, (jint)0x1f16acbL
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string5_ByteBffr
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array49_GameShll),
 78, 1, (jint)0x5dL
};

#ifdef CHKALL_java_nio_ByteBuffer
#include "jcgochke.h"
#endif

#endif
