tensorflow::ReadOnlyMemoryRegion

This is an abstract class.

#include <file_system.h>

A readonly memmapped file abstraction.

Summary

The implementation must guarantee that all memory is accessible when the object exists, independently from the Env that created it.

Constructors and Destructors

ReadOnlyMemoryRegion()
~ReadOnlyMemoryRegion()

Public functions

data()=0
virtual const void *
Returns a pointer to the memory region.
length()=0
virtual uint64
Returns the length of the memory region in bytes.

Public functions

ReadOnlyMemoryRegion

 ReadOnlyMemoryRegion()

data

virtual const void * data()=0

Returns a pointer to the memory region.

length

virtual uint64 length()=0

Returns the length of the memory region in bytes.

~ReadOnlyMemoryRegion

virtual  ~ReadOnlyMemoryRegion()=default