MISR Toolkit  1.5.1
Functions
MtkDataBufferImport.c File Reference
#include "MisrUtil.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

MTKt_status MtkDataBufferImport (int nline, int nsample, MTKt_DataType datatype, void *dataptr, MTKt_DataBuffer *databuf)
 Import Data Buffer. More...
 

Function Documentation

◆ MtkDataBufferImport()

MTKt_status MtkDataBufferImport ( int  nline,
int  nsample,
MTKt_DataType  datatype,
void *  dataptr,
MTKt_DataBuffer databuf 
)

Import Data Buffer.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we import an existing data buffer into a data buffer structure with a size of 5 lines by 10 samples of type MTKe_int16
status = MtkDataBufferImport(5, 10, MTKe_int16, dataptr, &databuf);
Note
The caller is responsible for using MtkDataBufferFree() to free the memory used by databuf
Parameters
[in]nlineNumber of lines
[in]nsampleNumber of samples
[in]datatypeData Type
[in]dataptrData pointer to payload
[out]databufData Buffer

Definition at line 35 of file MtkDataBufferImport.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53