Tizen Developers

Menu
Sites
Language
Convert from Tizen::Base::FloatBuffer to std::vector< float >

 

 

There is a function which takes a  std::vector< float> parameter. I have the values in a variable of typeTizen::Base::FloatBuffer.

Is it possible to make such a conversion  ?

Edited on 18 03, 2014

Responses

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