Table of Contents

Class BufferDictionary

Espace de noms
easyar

Un mappage de chemins de fichiers vers Buffer. Utilisé pour représenter plusieurs fichiers placés en mémoire.

BufferDictionary

Constructeurs

BufferDictionary

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

Méthodes

count

Nombre de fichiers actuels

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

Retours

Type Description
Int32

contains

Déterminer si le chemin spécifié est dans le dictionnaire.

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)

Paramètres

Nom Type Description
path String

Retours

Type Description
Boolean

tryGet

Essayer d'obtenir le Buffer correspondant au chemin spécifié.

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)

Paramètres

Nom Type Description
path String

Retours

Type Description
Optional<Buffer>

set

Définir le Buffer correspondant au chemin spécifié.

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)

Paramètres

Nom Type Description
path String
buffer Buffer

Retours

Type Description
Void

remove

Supprimer le chemin spécifié.

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)

Paramètres

Nom Type Description
path String

Retours

Type Description
Boolean

clear

vider le dictionnaire.

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

Retours

Type Description
Void