Table of Contents

Class BufferDictionary

Spazio dei nomi
easyar

Una mappatura da percorsi di file a Buffer. Utilizzata per rappresentare più file caricati in memoria.

BufferDictionary

Costruttori

BufferDictionary

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

Metodi

count

Numero corrente di file.

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()

Valore restituito

Tipo Descrizione
Int32

contains

Determina se un percorso specificato è presente nel dizionario.

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)

Parametri

Nome Tipo Descrizione
path String

Valore restituito

Tipo Descrizione
Boolean

tryGet

Prova a ottenere il Buffer corrispondente al percorso specificato.

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)

Parametri

Nome Tipo Descrizione
path String

Valore restituito

Tipo Descrizione
Optional<Buffer>

set

Imposta il Buffer corrispondente al percorso specificato.

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)

Parametri

Nome Tipo Descrizione
path String
buffer Buffer

Valore restituito

Tipo Descrizione
Void

remove

Rimuove il percorso specificato.

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)

Parametri

Nome Tipo Descrizione
path String

Valore restituito

Tipo Descrizione
Boolean

clear

Svuota il dizionario.

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()

Valore restituito

Tipo Descrizione
Void