Table of Contents

Class BufferDictionary

Espaço de nomes
easyar

Um mapeamento de caminhos de arquivo para Buffer. Usado para representar vários arquivos colocados na memória.

BufferDictionary

Construtores

BufferDictionary

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

Métodos

count

O número atual de arquivos.

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

Retorna

Tipo Descrição
Int32

contains

Determina se o caminho especificado está no dicionário.

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)

Parâmetros

Nome Tipo Descrição
path String

Retorna

Tipo Descrição
Boolean

tryGet

Tenta obter o Buffer correspondente ao caminho especificado.

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)

Parâmetros

Nome Tipo Descrição
path String

Retorna

Tipo Descrição
Optional<Buffer>

set

Define o Buffer correspondente ao caminho especificado.

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)

Parâmetros

Nome Tipo Descrição
path String
buffer Buffer

Retorna

Tipo Descrição
Void

remove

Remove o caminho especificado.

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)

Parâmetros

Nome Tipo Descrição
path String

Retorna

Tipo Descrição
Boolean

clear

Limpa o dicionário.

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

Retorna

Tipo Descrição
Void