| synopsis || arguments || prev || next |

kdu_line_buf::set_floats

Java: Kdu_line_buf::Set_floats

bool set_floats( float * buffer, int first_idx, int num_samples)

Java: boolean Set_floats( float[] buffer, int first_idx, int num_samples)

[Declared in "../coresys/common/kdu_sample_processing.h"]

Go to class description.


Synopsis

Returns false if the object does not hold a 32-bit normalized (floating point) sample representation. Otherwise, returns true and copies the floating point samples from the supplied buffer. The first sample in buffer is stored first_idx positions from the start of the line. There may be little or no checking that the sample range represented by first_idx and num_samples is legal, so be careful.

For native C/C++ interfacing, it is more efficient to explicitly access the internal buffer using get_buf32.


Arguments

buffer [float *]

first_idx [int]

num_samples [int]


| top || synopsis || arguments || prev || next |