BufferDictionary Class

This type is an EasyAR Sense API in C#: BufferDictionary . Some descriptions may not apply to Unity environment on this page.

Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.

Description

A mapping from file path to Buffer . It can be used to represent multiple files in the memory.


Methods

count

C#

public virtual int count()

Current file count.

contains

C#

public virtual bool contains(string path)

Checks if a specified path is in the dictionary.

tryGet

C#

public virtual Optional< Buffer > tryGet(string path)

Tries to get the corresponding Buffer for a specified path.

set

C#

public virtual void set(string path, Buffer buffer)

Sets Buffer for a specified path.

remove

C#

public virtual bool remove(string path)

Removes a specified path.

clear

C#

public virtual void clear()

Clears the dictionary.