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

Go to the source code of this file.

Functions

MTKt_status MtkDataBufferAllocate (int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer *databuf)
 Allocate Data Buffer. More...
 

Function Documentation

◆ MtkDataBufferAllocate()

MTKt_status MtkDataBufferAllocate ( int  nline,
int  nsample,
MTKt_DataType  datatype,
MTKt_DataBuffer databuf 
)

Allocate Data Buffer.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we allocate a data buffer with a size of 5 lines by 10 samples of type MTKe_int16
status = MtkDataBufferAllocate(5, 10, MTKe_int16, &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
[out]databufData Buffer

Definition at line 35 of file MtkDataBufferAllocate.c.


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