Table of Contents

Class BufferDictionary

Namespace
easyar

A mapping from a file path to Buffer. Used to represent multiple files placed in memory.

BufferDictionary

Constructors

BufferDictionary

void easyar_BufferDictionary__ctor(easyar_BufferDictionary * * Return)
BufferDictionary()
public BufferDictionary()
constructor()
+ (easyar_BufferDictionary *) create
public convenience init()
public BufferDictionary()

Methods

count

Current number of files.

int easyar_BufferDictionary_count(const easyar_BufferDictionary * This)
int count()
public int count()
fun count(): Int
- (int)count
public func count() -> Int32
public virtual int count()

Returns

Int32

contains

Determine whether the specified path is in the dictionary.

bool easyar_BufferDictionary_contains(const easyar_BufferDictionary * This, easyar_String * path)
bool contains(std::string path)
public boolean contains(java.lang.@Nonnull String path)
fun contains(path: String): Boolean
- (bool)contains:(NSString *)path
public func contains(_ path: String) -> Bool
public virtual bool contains(string path)

Parameters

path String

Returns

Boolean

tryGet

Attempt to obtain the Buffer corresponding to the specified path.

void easyar_BufferDictionary_tryGet(const easyar_BufferDictionary * This, easyar_String * path, easyar_OptionalOfBuffer * Return)
std::optional<std::shared_ptr<Buffer>> tryGet(std::string path)
public @Nullable Buffer tryGet(java.lang.@Nonnull String path)
fun tryGet(path: String): Buffer?
- (easyar_Buffer *)tryGet:(NSString *)path
public func tryGet(_ path: String) -> Buffer?
public virtual Optional<Buffer> tryGet(string path)

Parameters

path String

Returns

Optional<Buffer>

set

Set the Buffer corresponding to the specified path.

void easyar_BufferDictionary_set(easyar_BufferDictionary * This, easyar_String * path, easyar_Buffer * buffer)
void set(std::string path, std::shared_ptr<Buffer> buffer)
public void set(java.lang.@Nonnull String path, @Nonnull Buffer buffer)
fun set(path: String, buffer: Buffer): Unit
- (void)set:(NSString *)path buffer:(easyar_Buffer *)buffer
public func set(_ path: String, _ buffer: Buffer) -> Void
public virtual void @set(string path, Buffer buffer)

Parameters

path String
buffer Buffer

Returns

Void

remove

Remove the specified path.

bool easyar_BufferDictionary_remove(easyar_BufferDictionary * This, easyar_String * path)
bool remove(std::string path)
public boolean remove(java.lang.@Nonnull String path)
fun remove(path: String): Boolean
- (bool)remove:(NSString *)path
public func remove(_ path: String) -> Bool
public virtual bool remove(string path)

Parameters

path String

Returns

Boolean

clear

Clear the dictionary.

void easyar_BufferDictionary_clear(easyar_BufferDictionary * This)
void clear()
public void clear()
fun clear(): Unit
- (void)clear
public func clear() -> Void
public virtual void clear()

Returns

Void