语言

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  ?

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

1 回复
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 }