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

Go to the source code of this file.

Functions

MTKt_status MtkDataBufferAllocate3D (int nblock, int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer3D *databuf)
 Allocate 3-dimensional Data Buffer (a buffer stack) More...
 

Function Documentation

◆ MtkDataBufferAllocate3D()

MTKt_status MtkDataBufferAllocate3D ( int  nblock,
int  nline,
int  nsample,
MTKt_DataType  datatype,
MTKt_DataBuffer3D databuf 
)

Allocate 3-dimensional Data Buffer (a buffer stack)

Returns
MTK_SUCCESS if successful.
Example:
In this example, we allocate a 3-dimensional data buffer with a size of 3 blocks by 5 lines by 10 samples of type MTKe_int16
status = MtkDataBufferAllocate3D(3, 5, 10, MTKe_int16, &databuf);
Note
The caller is responsible for using MtkDataBufferFree3D() to free the memory used by databuf
Parameters
[in]nblockNumber of blocks
[in]nlineNumber of lines
[in]nsampleNumber of samples
[in]datatypeData Type
[out]databufData Buffer

Definition at line 35 of file MtkDataBufferAllocate3D.c.


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