| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(memory_buffer_t), | public, | dimension(:), allocatable | :: | buffers | |||
| integer, | public | :: | buffer_count | = | 0 | ||
| integer, | public | :: | max_buffers | = | 1000 | ||
| logical, | public | :: | enabled | = | .false. | ||
| real(kind=real64), | public | :: | total_memory_used | = | 0.0_real64 | 
Initialize the memory backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | max_buffers | 
Save data to memory buffer instead of file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | |||
| integer(kind=int8), | intent(in), | dimension(:) | :: | data | ||
| character(len=*), | intent(in), | optional | :: | format | 
Retrieve a buffer by filename
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | 
Check if a file exists in memory backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | 
Get size of a file in memory backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | 
Clear all memory buffers
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(inout) | :: | this | 
Get memory backend statistics
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_backend_t), | intent(in) | :: | this | |||
| integer, | intent(out), | optional | :: | buffer_count | ||
| real(kind=real64), | intent(out), | optional | :: | total_memory | ||
| logical, | intent(out), | optional | :: | enabled |