Languages

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 by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

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 }