Class BufferDictionary
- Espacio de nombres
- easyar
Un mapeo desde una ruta de archivo a Buffer. Se utiliza para representar múltiples archivos almacenados en memoria.
BufferDictionary
Constructores
BufferDictionary
void easyar_BufferDictionary__ctor(easyar_BufferDictionary * * Return)
BufferDictionary()
public BufferDictionary()
constructor()
+ (easyar_BufferDictionary *) create
public convenience init()
public BufferDictionary()
Métodos
count
Número actual de archivos.
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()
Devuelve
| Tipo | Descripción |
|---|---|
| Int32 |
contains
Determinar si la ruta especificada está en el diccionario.
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
| Nombre | Tipo | Descripción |
|---|---|---|
| path | String |
Devuelve
| Tipo | Descripción |
|---|---|
| Boolean |
tryGet
Intentar obtener el Buffer correspondiente a la ruta especificada.
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
| Nombre | Tipo | Descripción |
|---|---|---|
| path | String |
Devuelve
| Tipo | Descripción |
|---|---|
| Optional<Buffer> |
set
Establecer el Buffer correspondiente a la ruta especificada.
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
| Nombre | Tipo | Descripción |
|---|---|---|
| path | String | |
| buffer | Buffer |
Devuelve
| Tipo | Descripción |
|---|---|
| Void |
remove
Eliminar la ruta especificada.
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
| Nombre | Tipo | Descripción |
|---|---|---|
| path | String |
Devuelve
| Tipo | Descripción |
|---|---|
| Boolean |
clear
Vaciar el diccionario.
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()
Devuelve
| Tipo | Descripción |
|---|---|
| Void |