#include <IO/Buffer.oh>
#include <ADT/StringBuffer.oh>
#define IO_Buffer__sizeBuffer 8192
#define IO_Buffer__sizeDirect 4096
static void IO_Buffer__Init(IO_Buffer__Channel ch, IO__ByteChannel base);

/* run-time meta data */
static RT0__ModuleDesc _mid;
RT0__StructDesc _td_IO_Buffer__Channel = { (RT0__Struct[]){&_td_IO_Buffer__ChannelDesc}, NULL, &_mid, "Channel", 8, -1, RT0__strPointer };
RT0__StructDesc _td_IO_Buffer__ChannelDesc = { (RT0__Struct[]){&_td_IO__ChannelDesc,&_td_IO__ByteChannelDesc,&_td_IO_Buffer__ChannelDesc}, (void*[]){(void*)IO_Buffer__ChannelDesc_Close,(void*)IO_Buffer__ChannelDesc_CloseAndRegister,(void*)IO_Buffer__ChannelDesc_FileDescriptor,(void*)IO__ChannelDesc_KeyForSelector,(void*)IO__ChannelDesc_RegisterWithSelector,(void*)IO_Buffer__ChannelDesc_SetBlocking,(void*)IO_Buffer__ChannelDesc_SetPos,(void*)IO_Buffer__ChannelDesc_Flush,(void*)IO_Buffer__ChannelDesc_Read,(void*)IO__ByteChannelDesc_TransferTo,(void*)IO_Buffer__ChannelDesc_Write,(void*)IO_Buffer__ChannelDesc_ReadLineLF}, &_mid, "ChannelDesc", 8232, 2, RT0__strRecord };
RT0__StructDesc _td_IO_Buffer__1361 = { (RT0__Struct[]){&RT0__char}, NULL, &_mid, NULL, 8192, 8192, RT0__strArray };
RT0__StructDesc _td_IO_Buffer__2303 = { (RT0__Struct[]){&RT0__byte}, NULL, &_mid, NULL, 1, 1, RT0__strOpenArray };
RT0__StructDesc _td_IO_Buffer__6244 = { (RT0__Struct[]){&RT0__byte}, NULL, &_mid, NULL, 1, 1, RT0__strOpenArray };
static RT0__ModuleDesc _mid = { (OOC_CHAR8*)"IO:Buffer", (RT0__Struct[]) { &_td_IO_Buffer__Channel, &_td_IO_Buffer__ChannelDesc, NULL } };

extern void OOC_IO_Buffer_init0() {
  RT0__RegisterModule(&_mid);
  OOC_IO_Buffer_init();
}

/* --- */
