# KVMemoryStream

DEPRECATED: The `KVMemoryStream` structure and all uses of it are deprecated in KeyView 12.10.0 and later. KeyView does not guarantee to make all memory allocations through this structure, and it might be removed entirely in future.

This structure defines an optional memory allocator to be used by Filter. Behavior for all functions is the same as for their C run-time equivalents. The structure is defined in `kvtypes.h`.

    typedef struct tag_MemoryStream
    {
       void *pMemoryStreamPrivateData;
       void * (pascal *fpMalloc)  (struct tag_MemoryStream*, size_t );
       void   (pascal *fpFree)    (struct tag_MemoryStream*, void *);
       void * (pascal *fpRealloc) (struct tag_MemoryStream*, void *, size_t);
       void * (pascal *fpCalloc)  (struct tag_MemoryStream*, size_t, size_t);
    }
    KVMemoryStream;

## Member Descriptions

- All member functions are equivalent to their counterparts in the ANSI standard library.
- `fpRealloc()` must handle a `NULL` pointer.

_FT_HTML5_bannerTitle.htm