语言

Menu
Sites
Language
how to convert byteBuffer to char* ?

 

I want to convert  byteBuffer to char* .

What should I do ?

Please let me know

void
TestForm::check(Tizen::Base::ByteBuffer& buf)
{

    //char* charBuf = ??

	String str(charBuf);
	int len = str.GetLength();

.
.
.

}

 

 

Best regards,

Jenny

 

响应

1 回复
Alex Ashirov

Hi,

You can try the folowing

char * charBuf = (char*)buf.GetPointer();