Languages

Menu
Sites
Language
How can i convert Tizen::Base::ByteBuffer to std::vector<short>?

Hello everyone,

 

How  can i convert Tizen::Base::ByteBuffer  to std::vector<short>

 

is there any conversion to that in Tizen?

 

Thakns..

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

5 Replies
Hojun Jaygarl
You can do like this: while (buf.HasRemaining()) { short s; // Reads short s from the current position of the buf buf.GetShort(s); // The position is incremented by one .. //here, add s to vector } Thanks.
Slawek Kowalski

Hi

 

It seems Tizen doesn't support std:vector. I have got an old project which use <vector.h>.

Is it possible to include apprioprate files or I have to convert it to IList?

 

thanks

slaw

 

 

Alex Ashirov

Hi,

The std::vector is supported by Tizen. Did you try

#include <vector>

instead of

#include <vector.h>

?

Slawek Kowalski

I tried:

#include <vector>
#include <vector.h>
#include <vector.hh>

Got message: Unresolved inclusion:

Alex Ashirov

Hi,

It is strange… What SDK do you use? I tried this with Tizen SDK 2.2.0 for the both Win and Mac OS and I didn’t face any inclusion problems. Can you find file with name ‘vector’ in your sdk’s include folders?