Languages

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

 

Responses

1 Replies
Alex Ashirov

Hi,

You can try the folowing

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