public virtual void init(global::haxe.io.BytesInput data) { unchecked { this._data = data; } }
public static global::alphatab.model.Score loadScoreFromBytes(global::haxe.io.Bytes data) { unchecked { global::haxe.root.Array<object> importers = global::alphatab.importer.ScoreImporter.availableImporters(); global::alphatab.model.Score score = default(global::alphatab.model.Score); { int _g = 0; while (( _g < importers.length )) { global::alphatab.importer.ScoreImporter importer = ((global::alphatab.importer.ScoreImporter) (importers[_g]) ); ++ _g; try { global::haxe.io.BytesInput input = new global::haxe.io.BytesInput(((global::haxe.io.Bytes) (data) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) )); importer.init(input); score = importer.readScore(); break; } catch (global::System.Exception __temp_catchallException508) { object __temp_catchall509 = __temp_catchallException508; if (( __temp_catchall509 is global::haxe.lang.HaxeException )) { __temp_catchall509 = ((global::haxe.lang.HaxeException) (__temp_catchallException508) ).obj; } { object e = __temp_catchall509; if (global::haxe.lang.Runtime.eq(e, global::alphatab.importer.ScoreImporter.UnsupportedFormat)) { continue; } else { throw global::haxe.lang.HaxeException.wrap(e); } } } } } if (( score != default(global::alphatab.model.Score) )) { return score; } else { throw global::haxe.lang.HaxeException.wrap("No reader for the requested file found"); } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1780601078: { this._readBytes = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 973409099: { this._input = ((global::haxe.io.BytesInput) (@value) ); return @value; } case 311465992: { this._position = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } case 1606329826: { this._currentByte = ((int) (global::haxe.lang.Runtime.toInt(@value)) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1970565641: { this._data = ((global::haxe.io.BytesInput) (@value) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }