Skip to content

Commit

Permalink
avm2: ByteArray should implement IDataInput2 and IDataOutput2. For so…
Browse files Browse the repository at this point in the history
…me reason.
  • Loading branch information
Dinnerbone committed Jul 29, 2024
1 parent 892c39f commit 3de0279
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/globals/flash/utils/ByteArray.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package flash.utils {
[Ruffle(InstanceAllocator)]
public class ByteArray implements IDataInput, IDataOutput {
public class ByteArray implements IDataInput2, IDataOutput2 {
private static var _defaultObjectEncoding:uint = 3;
public static function get defaultObjectEncoding():uint {
return _defaultObjectEncoding;
Expand Down
4 changes: 4 additions & 0 deletions core/src/avm2/globals/flash/utils/IDataInput2.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package flash.utils {
internal interface IDataInput2 extends IDataInput {
}
}
4 changes: 4 additions & 0 deletions core/src/avm2/globals/flash/utils/IDataOutput2.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package flash.utils {
internal interface IDataOutput2 extends IDataOutput {
}
}
2 changes: 2 additions & 0 deletions core/src/avm2/globals/globals.as
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ include "flash/crypto.as"

include "flash/utils/IDataInput.as"
include "flash/utils/IDataOutput.as"
include "flash/utils/IDataInput2.as"
include "flash/utils/IDataOutput2.as"
include "flash/utils/IExternalizable.as"
include "flash/utils/ByteArray.as"
include "flash/utils/Dictionary.as"
Expand Down

0 comments on commit 3de0279

Please sign in to comment.