Skip to content

Commit

Permalink
missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Sep 2, 2022
1 parent 0a71282 commit e9e0547
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/feathers/amfio/AMFEcmaArray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,23 @@ class AMFEcmaArrayData<T> {
}
#end

/**
@see [`Array map()`](https://api.haxe.org/Array.html#map)
**/
public inline function map<S>(f:T->S):Array<S> {
return this.indices.map(f);
}

/**
@see [`Array filter()`](https://api.haxe.org/Array.html#filter)
**/
public inline function filter(f:T->Bool):Array<T> {
return this.indices.filter(f);
}

/**
@see [`Array resize()`](https://api.haxe.org/Array.html#resize)
**/
public inline function resize(len:Int):Void {
this.indices.resize(len);
}
Expand All @@ -269,6 +278,9 @@ class AMFEcmaArrayKeyValueIterator {
private var indiciesIterator:KeyValueIterator<Dynamic, Dynamic>;
private var fieldsIterator:KeyValueIterator<Dynamic, Dynamic>;

/**
Creates a new `AMFEcmaArrayKeyValueIterator` instance.
**/
public function new(array:AMFEcmaArrayData<Dynamic>) {
this.indiciesIterator = @:privateAccess array.indices.keyValueIterator();
this.fieldsIterator = @:privateAccess array.fields.keyValueIterator();
Expand Down
3 changes: 3 additions & 0 deletions src/feathers/amfio/AMFWriter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class AMFWriter #if !flash implements IDataOutput #end#if (flash || openfl >= "9

private var target:ByteArray;

/**
@see [`ObjectEncoding.dynamicPropertyWriter`](https://api.openfl.org/openfl/net/ObjectEncoding.html#dynamicPropertyWriter)
**/
public var dynamicPropertyWriter:#if (flash || openfl >= "9.2.0") IDynamicPropertyWriter #else Dynamic #end;

private var objects:Array<Dynamic>;
Expand Down

0 comments on commit e9e0547

Please sign in to comment.