mardi 29 septembre 2015

BinaryData ByteArray actionscript to PHP

In actionscript i got some DefineBinaryData and some function below:

var loc1 = new ByteArray();
loc1.endian = Endian.LITTLE_ENDIAN;
var loc2 = loc1.readInt();

var loc3 = new ByteArray();
var loc4:int = loc3.readByte();
var loc5 = loc3.readUTFBytes(loc3.length);

param1.readBytes(loc2,0,16);
loc2.position = 0;

I export these BinaryData to .bin file and read in php use fopen("bin_file", "rb") but how i can use readByte() readUTFBytes() readInt() and Endian.LITTLE_ENDIAN in PHP ?

Aucun commentaire:

Enregistrer un commentaire