mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 03:58:06 +00:00
AMF3 tests, exceptions
This commit is contained in:
34
libsrc/ffdec_lib/testdata/as3/CustomClass.as
vendored
Normal file
34
libsrc/ffdec_lib/testdata/as3/CustomClass.as
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
package
|
||||
{
|
||||
import flash.utils.IExternalizable;
|
||||
import flash.utils.IDataOutput;
|
||||
import flash.utils.IDataInput;
|
||||
|
||||
public class CustomClass implements IExternalizable
|
||||
{
|
||||
|
||||
private var val8:int;
|
||||
private var val32:int;
|
||||
public function CustomClass()
|
||||
{
|
||||
}
|
||||
|
||||
public function setVal8(v:int){
|
||||
this.val8 = v;
|
||||
}
|
||||
public function setVal32(v:int){
|
||||
this.val32 = v;
|
||||
}
|
||||
|
||||
public function writeExternal(output:IDataOutput):void {
|
||||
output.writeByte(val8);
|
||||
output.writeInt(val32);
|
||||
|
||||
}
|
||||
|
||||
public function readExternal(input:IDataInput):void {
|
||||
this.val8 = input.readByte();
|
||||
this.val32 = input.readInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user