• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ IoObject_new函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中IoObject_new函数的典型用法代码示例。如果您正苦于以下问题:C++ IoObject_new函数的具体用法?C++ IoObject_new怎么用?C++ IoObject_new使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了IoObject_new函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: IoObject_new

IoCairoGlyph *IoCairoGlyph_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoCairoGlyph_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(cairo_glyph_t)));

	IoState_registerProtoWithFunc_(state, self, IoCairoGlyph_proto);

	{
		IoMethodTable methodTable[] = {
			{"setIndex", IoCairoGlyph_setIndex},
			{"index", IoCairoGlyph_index},

			{"setX", IoCairoGlyph_setX},
			{"x", IoCairoGlyph_x},

			{"setY", IoCairoGlyph_setY},
			{"y", IoCairoGlyph_y},

			{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}
	return self;
}
开发者ID:AlexGensek,项目名称:io,代码行数:26,代码来源:IoCairoGlyph.c


示例2: IoObject_new

IoClutterEvent *IoClutterEvent_proto(void *state) {
  IoObject *self = IoObject_new(state);
  IoObject_tag_(self, IoClutterEvent_newTag(state));

  IoState_registerProtoWithFunc_(state, self, IoClutterEvent_proto);

  {
    IoMethodTable methodTable[] = {
      {"eventType",       IoClutterEvent_eventType},
      {"coords",          IoClutterEvent_getCoords},
      {"state",           IoClutterEvent_getState},
      {"time",            IoClutterEvent_getTime},
      {"source",          IoClutterEvent_getSource},
      //{"stage",     IoClutterEvent_getStage},
      {"flags",           IoClutterEvent_getFlags},
      {"peek",            IoClutterEvent_peek},
      {"put",             IoClutterEvent_put},
      {"putBack",         IoClutterEvent_putBack},
      {"hasPending",      IoClutterEvent_hasPending},
      {"button",          IoClutterEvent_getButton},
      {"clickCount",      IoClutterEvent_getClickCount},
      {"keySymbol",       IoClutterEvent_getKeySymbol},
      {"keyCode",         IoClutterEvent_getKeyCode},
      {"keyUnicode",      IoClutterEvent_getKeyUnicode},
      {"relatedActor",    IoClutterEvent_getRelatedActor},
      {"scrollDirecton",  IoClutterEvent_getScrollDirection},
      {"device",          IoClutterEvent_getDevice},

      {NULL, NULL}
    };
    IoObject_addMethodTable_(self, methodTable);
  }

  return self;
}
开发者ID:BMeph,项目名称:io,代码行数:35,代码来源:IoClutterEvent.c


示例3: IoObject_new

IoYajlGen *IoYajlGen_proto(void *state)
{
	IoYajlGen *self = IoObject_new(state);
	IoObject_tag_(self, IoYajlGen_newTag(state));

	yajl_gen yg = yajl_gen_alloc(NULL);
	//yajl_gen_config(yg, yajl_gen_beautify, 0);

	IoObject_setDataPointer_(self, yg);

	IoState_registerProtoWithFunc_(state, self, protoId);

	{
		IoMethodTable methodTable[] =
		{
			{"pushNull", IoYajlGen_pushNull},
			{"pushString", IoYajlGen_pushString},
			{"pushInteger", IoYajlGen_pushInteger},
			{"pushDouble", IoYajlGen_pushDouble},
			{"pushNumberString", IoYajlGen_pushNumberString},
			{"pushBool", IoYajlGen_pushBool},
			{"openMap", IoYajlGen_openMap},
			{"closeMap", IoYajlGen_closeMap},
			{"openArray", IoYajlGen_openArray},
			{"closeArray", IoYajlGen_closeArray},
			{"generate", IoYajlGen_generate},
			{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}

	return self;
}
开发者ID:draftcode,项目名称:io,代码行数:33,代码来源:IoYajlGen.c


示例4: IoObject_new

IoAudioDevice *IoAudioDevice_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoAudioDevice_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(IoAudioDeviceData)));

	DATA(self)->writeBuffer = IoSeq_new(state);
	DATA(self)->readBuffer = IoSeq_new(state);
	DATA(self)->audioDevice = AudioDevice_new();
	IoState_registerProtoWithFunc_(state, self, IoAudioDevice_proto);

	{
	IoMethodTable methodTable[] = {
	{"open", IoAudioDevice_open},
	{"openForReadingAndWriting", IoAudioDevice_openForReadingAndWriting},
	{"close", IoAudioDevice_close},
	{"asyncWrite", IoAudioDevice_asyncWrite},
	{"asyncRead", IoAudioDevice_read},
	{"error", IoAudioDevice_error},
	{"isActive", IoAudioDevice_isActive},
	{"streamTime", IoAudioDevice_streamTime},
	{"needsData", IoAudioDevice_needsData},
	{"writeBufferIsEmpty", IoAudioDevice_writeBufferIsEmpty},
	{NULL, NULL},
	};
	IoObject_addMethodTable_(self, methodTable);
	}
	return self;
}
开发者ID:Akiyah,项目名称:io,代码行数:30,代码来源:IoAudioDevice.c


示例5: IoObject_new

IoEvDNSRequest *IoEvDNSRequest_proto(void *state)
{
	IoObject *self = IoObject_new(state);

	IoObject_tag_(self, IoEvDNSRequest_newTag(state));
	IoObject_setDataPointer_(self, 0x0);

	IoState_registerProtoWithFunc_((IoState *)state, self, IoEvDNSRequest_proto);

	{
		IoMethodTable methodTable[] = {
		{"resolveIPv4", IoEvDNSRequest_resolveIPv4},
		/*
		{"resolveIPv6", IoEvDNSRequest_resolveIPv6},
		{"resolveReverseIPv4", IoEvDNSRequest_resolveReverseIPv4},
		{"resolveReverseIPv6", IoEvDNSRequest_resolveReverseIPv6},
		*/
		{NULL, NULL},
		};

		IoObject_addMethodTable_(self, methodTable);
	} 


	return self;
}
开发者ID:Akiyah,项目名称:io,代码行数:26,代码来源:IoEvDNSRequest.c


示例6: IoObject_new

IoFont *IoFont_proto( void *state )
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoFont_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(IoFontData)));
	DATA(self)->path = IOSYMBOL(".");
	DATA(self)->font = GLFont_new();
	DATA(self)->isProto = 1;
	IoState_registerProtoWithId_(state, self, protoId);

	{
		IoMethodTable methodTable[] = {
		{"open", IoFont_open},

		{"setPath", IoFont_setPath},
		{"path", IoFont_path},

		{"setPixelSize", IoFont_setPixelSize},
		{"pixelSize", IoFont_pixelSize},

		{"drawString", IoFont_drawString},
		{"widthOfString", IoFont_lengthOfString},
		{"widthOfCharacter", IoFont_lengthOfCharacter},
		{"pixelHeight", IoFont_fontHeight},
		{"isTextured", IoFont_isTextured},
		{"error", IoFont_error},
		{"stringIndexAtWidth", IoFont_stringIndexAtWidth},
		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}
	GLFont_init();
	return self;
}
开发者ID:Teslos,项目名称:io,代码行数:35,代码来源:IoFont.c


示例7: IoObject_new

IoClutterColor *IoClutterColor_proto(void *state) {
  IoObject *self = IoObject_new(state);
  IoObject_tag_(self, IoClutterColor_newTag(state));

  IoObject_setDataPointer_(self, calloc(1, sizeof(IoClutterColorData)));
  IoState_registerProtoWithFunc_(state, self, IoClutterColor_proto);

  {
    IoMethodTable methodTable[] = {
      {"==",              IoClutterColor_equals},
      {"!=",              IoClutterColor_notEquals},

      {"with",            IoClutterColor_fromString},
      {"asString",        IoClutterColor_asString},
      {"withHLS",         IoClutterColor_fromHLS},
      {"toHLS",           IoClutterColor_toHLS},
      {"withPixel",       IoClutterColor_fromPixel},
      {"toPixel",         IoClutterColor_toPixel},

      {"+",               IoClutterColor_add},
      {"-",               IoClutterColor_subtract},
      {"addInPlace",      IoClutterColor_addInPlace},
      {"subtractInPlace", IoClutterColor_subtractInPlace},

      {"lighten",         IoClutterColor_lighten},
      {"darken",          IoClutterColor_darken},
      {"shade",           IoClutterColor_shade},

      {NULL, NULL}
    };
    IoObject_addMethodTable_(self, methodTable);
  }

  return self;
}
开发者ID:BMeph,项目名称:io,代码行数:35,代码来源:IoClutterColor.c


示例8: IoObject_new

IoObject *IoMemcached_proto(void *state)
{
	IoMemcached *self = IoObject_new(state);
	IoObject_tag_(self, IoMemcached_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(IoMemcachedData)));

	IoState_registerProtoWithFunc_(state, self, IoMemcached_proto);

	{
		IoMethodTable methodTable[] = {
		{"addServer",  IoMemcached_addServer},
		{"set",        IoMemcached_set},
		{"add",        IoMemcached_add},
		{"replace",    IoMemcached_replace},
		{"append",     IoMemcached_append},
		{"prepend",    IoMemcached_prepend},
		{"get",        IoMemcached_get},
		{"getMulti",   IoMemcached_getMulti},
		{"delete",     IoMemcached_delete},
		{"flushAll",   IoMemcached_flushAll},
		{"incr",       IoMemcached_incr},
		{"decr",       IoMemcached_decr},
		{"stats",      IoMemcached_stats},
		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}

	return self;
}
开发者ID:ADTSH,项目名称:io,代码行数:31,代码来源:IoMemcached.c


示例9: IoObject_new

// _proto creates the first-ever instance of the prototype 
IoObject *IoCInvokeStructureInstance_proto(void *state)
{
        // First we allocate a new IoObject
        IoCInvokeStructureInstance *self = IoObject_new(state);

        // Then tag it
        IoObject_tag_(self, IoCInvokeStructureInstance_newTag(state));
	    IoObject_setDataPointer_(self, calloc(1, sizeof(IoCInvokeStructureInstanceData)));
        
	    // then register this proto generator
        IoState_registerProtoWithFunc_(state, self, IoCInvokeStructureInstance_proto);

        // and finally, define the table of methods this proto supports
        // we just have one method here, returnSelf, then terminate the array
        // with NULLs
        {
                IoMethodTable methodTable[] = {
			        {"setValue", IoCInvokeStructureInstance_setValue},
			        {"setLibrary", IoCInvokeStructureInstance_setLibrary},
                    {"getValue", IoCInvokeStructureInstance_getValue},
                	{NULL, NULL},
                };
                IoObject_addMethodTable_(self, methodTable);
        }

        return self;
}
开发者ID:fredreichbier,项目名称:io-cinvoke,代码行数:28,代码来源:IoCInvokeStructureInstance.c


示例10: IoObject_new

IoCairoFontOptions *IoCairoFontOptions_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoCairoFontOptions_newTag(state));

	IoState_registerProtoWithFunc_(state, self, IoCairoFontOptions_proto);

	{
		IoMethodTable methodTable[] = {
			{"create", IoCairoFontOptions_create},
			{"merge", IoCairoFontOptions_merge},

			{"setAntialias", IoCairoFontOptions_setAntialias},
			{"getAntialias", IoCairoFontOptions_getAntialias},

			{"getSubpixelOrder", IoCairoFontOptions_getSubpixelOrder},
			{"setSubpixelOrder", IoCairoFontOptions_setSubpixelOrder},

			{"setHintStyle", IoCairoFontOptions_setHintStyle},
			{"getHintStyle", IoCairoFontOptions_getHintStyle},

			{"setHintMetrics", IoCairoFontOptions_setHintMetrics},
			{"getHintMetrics", IoCairoFontOptions_getHintMetrics},

			{NULL, NULL},
		};

		IoObject_addMethodTable_(self, methodTable);
	}

	return self;
}
开发者ID:AlexGensek,项目名称:io,代码行数:32,代码来源:IoCairoFontOptions.c


示例11: IoObject_new

IoSkipDBM *IoSkipDBM_proto(void *state)
{
	IoMethodTable methodTable[] = {
	{"setPath",  IoSkipDBM_setPath},
	{"path",  IoSkipDBM_path},
	{"open",     IoSkipDBM_open},
	{"close",    IoSkipDBM_close},
	{"isOpen",   IoSkipDBM_isOpen},
	{"delete",   IoSkipDBM_delete},
	{"root",     IoSkipDBM_root},
	{"begin",     IoSkipDBM_beginTransaction},
	{"commit",     IoSkipDBM_commitnTransaction},
	//{"at",       IoSkipDBM_at},
	{"compact",  IoSkipDBM_compact},
	{NULL, NULL},
	};

	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoSkipDBM_newTag(state));

	IoObject_setDataPointer_(self, SkipDBM_new());
	IoState_registerProtoWithFunc_((IoState *)state, self, IoSkipDBM_proto);

	IoObject_addMethodTable_(self, methodTable);
	return self;
}
开发者ID:anthem,项目名称:io,代码行数:26,代码来源:IoSkipDBM.c


示例12: io_calloc

Levels *Levels_new(IoMessage *msg)
{
	Levels *self = io_calloc(1, sizeof(Levels));

	IoState *state = IoObject_state(msg);
	IoSymbol *operatorTableSymbol = IoState_symbolWithCString_(state, "OperatorTable");

	// Be ultra flexable, and try to use the first message's operator table.
	IoObject *opTable = IoObject_rawGetSlot_(msg, operatorTableSymbol);

	// Otherwise, use Core OperatorTable, and if that doesn't exist, create it.
	if (opTable == NULL)
	{
		// There is a chance the message didn't have it, but the core did---due
		// to the Core not being part of the message's protos. Use Core
		// Message's OperatorTable
		opTable = IoObject_rawGetSlot_(state->core, operatorTableSymbol);

		// If Core doesn't have an OperatorTable, then create it.
		if (opTable == NULL)
		{
			opTable = IoObject_new(state);
			IoObject_setSlot_to_(state->core, operatorTableSymbol, opTable);
			IoObject_setSlot_to_(opTable, IoState_symbolWithCString_(state, "precedenceLevelCount"), IoState_numberWithDouble_(state, IO_OP_MAX_LEVEL));
		}
	}

	self->operatorTable = getOpTable(opTable, "operators", IoState_createOperatorTable);
	self->assignOperatorTable = getOpTable(opTable, "assignOperators", IoState_createAssignOperatorTable);

	self->stack = List_new();
	Levels_reset(self);
	return self;
}
开发者ID:cdcarter,项目名称:io,代码行数:34,代码来源:IoMessage_opShuffle.c


示例13: printf

// _proto creates the first-ever instance of the prototype 
IoObject *IoSVN_proto(void *state)
{
	printf("IoSVN_proto\n");

	// First we allocate a new IoObject
	IoSVNObject *self = IoObject_new(state);

	// Then tag it
	IoObject_tag_(self, IoSVN_newTag(state));
	SVN_init();

	// then register this proto generator
	IoState_registerProtoWithFunc_(state, self, IoSVN_proto);

	// and finally, define the table of methods this proto supports
	// we just have one method here, returnSelf, then terminate the array
	// with NULLs
	{
		IoMethodTable methodTable[] = {
		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}

    //IoObject_setSlog_to_(self, IOSYMBOIL("HEAD"), IONUMBER());

	return self;
}
开发者ID:omf,项目名称:iosvnnative,代码行数:29,代码来源:IoSVN.c


示例14: IoObject_new

IoRegexMatch *IoRegexMatch_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoRegexMatch_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(IoRegexMatchData)));
	DATA(self)->regex = IONIL(self);
	DATA(self)->subject = IOSYMBOL("");
	DATA(self)->ranges = IoList_new(state);

	IoState_registerProtoWithFunc_(state, self, IoRegexMatch_proto);

	{
		IoMethodTable methodTable[] = {
			{"regex", IoRegexMatch_regex},
			{"subject", IoRegexMatch_subject},
			{"ranges", IoRegexMatch_ranges},
			{0, 0},
		};

		IoObject_addMethodTable_(self, methodTable);
	}

	return self;
}
开发者ID:AlexGensek,项目名称:io,代码行数:25,代码来源:IoRegexMatch.c


示例15: IoObject_new

IoTagDB *IoTagDB_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoTagDB_newTag(state));

	IoState_registerProtoWithFunc_(state, self, IoTagDB_proto);

	{
		IoMethodTable methodTable[] = {
		{"setPath", IoTagDB_setPath},
		{"open", IoTagDB_open},
		{"close", IoTagDB_close},
		{"atKeyPutTags", IoTagDB_atKeyPutTags},
		{"tagsAtKey", IoTagDB_tagsAtKey},
		{"removeKey", IoTagDB_removeKey},
		{"keysForTags", IoTagDB_keysForTags},
		{"size", IoTagDB_size},
		{"symbolForId", IoTagDB_symbolForId},
		{"idForSymbol", IoTagDB_idForSymbol},
		{"keyAtIndex", IoTagDB_keyAtIndex},
		{"delete", IoTagDB_delete},
		{"allUniqueTagIds", IoTagDB_allUniqueTagIds},
		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}

	IoObject_setDataPointer_(self, TagDB_new());

	return self;
}
开发者ID:Akiyah,项目名称:io,代码行数:31,代码来源:IoTagDB.c


示例16: IoObject_new

IoODEBox *IoODEBox_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoODEBox_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(IoODEBoxData)));

	GEOMID = 0;

	IoState_registerProtoWithId_(state, self, protoId);

	{
		IoMethodTable methodTable[] = {
		{"geomId", IoODEBox_geomId},
		{"lengths", IoODEBox_lengths},
		{"setLengths", IoODEBox_setLengths},
		{"pointDepth", IoODEBox_pointDepth},
		{"body", IoODEBox_body},
		{"setBody", IoODEBox_setBody},
		{"collide", IoODEGeom_collide},

		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}
	return self;
}
开发者ID:ADTSH,项目名称:io,代码行数:27,代码来源:IoODEBox.c


示例17: IoObject_new

IoGLScissor *IoGLScissor_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoGLScissor_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(IoGLScissorData)));

	DATA(self)->rect    = IoBox_new(state);
	DATA(self)->tmpRect = IoBox_new(state);

	IoState_registerProtoWithFunc_(state, self, IoGLScissor_proto);

	{
	IoMethodTable methodTable[] = {
	{"sync", IoGLScissor_sync},
	{"set", IoGLScissor_set},
	{"on", IoGLScissor_on},
	{"off", IoGLScissor_off},
	{"isOn", IoGLScissor_isOn},
	{"push", IoGLScissor_push},
	{"pop", IoGLScissor_pop},
	{"isVisible", IoGLScissor_isVisible},

	{"rect", IoGLScissor_rect},
	{"setRect", IoGLScissor_setScreenRect},
	{"setViewRect", IoGLScissor_setViewRect},
	{"unionWithViewRect", IoGLScissor_unionWithViewRect},
	{"unionWithScreenRect", IoGLScissor_unionWithScreenRect},
	{NULL, NULL},
	};
	IoObject_addMethodTable_(self, methodTable);
	}
	return self;
}
开发者ID:Akiyah,项目名称:io,代码行数:34,代码来源:IoGLScissor.c


示例18: IoObject_new

IoAsyncRequest *IoAsyncRequest_proto(void *state)
{
	IoAsyncRequest *self = IoObject_new(state);
	IoObject_tag_(self, IoAsyncRequest_newTag(state));

	IoObject_setDataPointer_(self, calloc(1, sizeof(struct aiocb)));

	IoState_registerProtoWithFunc_(state, self, IoAsyncRequest_proto);

	{
		IoMethodTable methodTable[] = {
		{"setDescriptor", IoAsyncRequest_setDescriptor},
		{"descriptor", IoAsyncRequest_descriptor},
		{"numberOfBytes", IoAsyncRequest_numberOfBytes},
		{"read", IoAsyncRequest_read},
		{"write", IoAsyncRequest_write},
		{"isDone", IoAsyncRequest_isDone},
		{"error", IoAsyncRequest_error},
		{"cancel", IoAsyncRequest_cancel},
		{"sync", IoAsyncRequest_sync},
		{"copyBufferTo", IoAsyncRequest_copyBufferTo},
		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}

	return self;
}
开发者ID:Akiyah,项目名称:io,代码行数:28,代码来源:IoAsyncRequest.c


示例19: IoObject_new

IoTokyoCabinetPrefixCursor *IoTokyoCabinetPrefixCursor_proto(void *state)
{
	IoMethodTable methodTable[] = {
	{"close",     IoTokyoCabinetPrefixCursor_close},
	{"first",  IoTokyoCabinetPrefixCursor_first},
	{"last",  IoTokyoCabinetPrefixCursor_last},
	{"previous",  IoTokyoCabinetPrefixCursor_previous},
	{"next",  IoTokyoCabinetPrefixCursor_next},
	{"jump",  IoTokyoCabinetPrefixCursor_jump},
	{"key",  IoTokyoCabinetPrefixCursor_key},
	{"value",  IoTokyoCabinetPrefixCursor_value},
	{"put",  IoTokyoCabinetPrefixCursor_put},
	{"remove",  IoTokyoCabinetPrefixCursor_remove},

	{NULL, NULL},
	};

	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoTokyoCabinetPrefixCursor_newTag(state));

	IoObject_setDataPointer_(self, NULL);
	IoState_registerProtoWithId_((IoState *)state, self, protoId);

	IoObject_addMethodTable_(self, methodTable);
	return self;
}
开发者ID:ADTSH,项目名称:io,代码行数:26,代码来源:IoTokyoCabinetPrefixCursor.c


示例20: IoObject_new

IoMP3Decoder *IoMP3Decoder_proto(void *state)
{
	IoObject *self = IoObject_new(state);
	IoObject_tag_(self, IoMP3Decoder_newTag(state));
	
	IoObject_setDataPointer_(self, calloc(1, sizeof(IoMP3DecoderData)));
	
	//DATA(self)->outSound = 0x0;
	DATA(self)->willProcessMessage = IoMessage_newWithName_label_(state, IOSYMBOL("willProcess"), IOSYMBOL("[MP3Decoder]"));
	DATA(self)->didProcessMessage = IoMessage_newWithName_label_(state, IOSYMBOL("didProcess"), IOSYMBOL("[MP3Decoder]"));
	DATA(self)->inputBuffer  = IoSeq_new(state);
	DATA(self)->outputBuffer = IoSeq_new(state);
	DATA(self)->tmpInputBa = UArray_new();
	
	IoState_registerProtoWithFunc_(state, self, IoMP3Decoder_proto);
	
	{
		IoMethodTable methodTable[] = {
		{"start", IoMP3Decoder_start},
		{"stop",  IoMP3Decoder_stop},
		{"inputBuffer",  IoMP3Decoder_inputBuffer},
		{"outputBuffer",  IoMP3Decoder_outputBuffer},
		
		{NULL, NULL},
		};
		IoObject_addMethodTable_(self, methodTable);
	}
	return self;
}
开发者ID:Akiyah,项目名称:io,代码行数:29,代码来源:IoMP3Decoder.c



注:本文中的IoObject_new函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ IoObject_tag_函数代码示例发布时间:2022-05-30
下一篇:
C++ IoObject_addMethodTable_函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap