Tods shop- christian louboutin gold glitter heels_
Hello everybody, I am a outdoor sports enthusiasts, winter comes, but I hope we do not lower temperature enthusiasm for outdoor sports, so in their own experience and under the
Tods shoe guidance of my predecessors summarize some main points on the Dongji equipment, and share with you. Inadequacies also hope hope that the exhibitions.
private ArrayList ReadArray ()
{
; int size = ReadInt32 ();
ArrayList arr = new ArrayList (size);
for (int i = 0; i
AMF Now that we have on file have a explicit knowing of the. Then the next step is necessary to clutch the package to penetrate some action on the Flex what the corresponding AMF files sent, the server returned to what AMF files. AMF parse these out and then you can see the call API.
chief response to the client to the server after the server sends a request made by AMF and request the same format as the main response to AMF, but the main contents of the response is different:
said afterward the Header, followed by a 16-bit integer used to indicate the number of subjects AMF, AMF is in the subject after this number.
AMF is called Action Message Format protocol, AMF protocol is Adobe's own protocol, mainly used because data exchange and remote procedure call, the functionally equivalent in the WebService, but the AMF and XML WebService is different in the AMF binary file, XML is text data, AMF higher transmission efficiency than XML. AMF uses HTTP transmitted, the opener is used as ActionScript, the comprehension of communication among Flex and Server.
AMF document is divided into four common sections: Introduction (Preamble), AMF head, AMF subject and body of the response.
Variable variable indicates that the subject data.
maximum of the code here, I have been taken from the AMF.web an open source. Net AMF serialization and deserialization of the library, we are amused can work to
12.LongString is the corresponding string types, String, however, and 2 corresponding to different 32-bit integer is accustomed here to characterize temperaments UTF8 string length, while the String using a 16-bit.
AMF each brain is composed of the emulating four components:
00 00 (AMF0 version) 00 00 (Header number is 0) 00 01 (AMF body has a)
10.Array corresponds to is. net in the ArrayList object that defines the first to use 32-bit integer the length of the ArralyList, then follow the ArrayList in the dense object, the object used to read as with function:
AMF remoting 2 knowledge package [transmit]
;
UTF string that names Header
0A (incoming variable is an Array) 00 00 00 03 (the width of the Array 3) 02 00 01 35 (Array of the premier merit is the string 34 35 (Array of the second amount is the string We can consider of is the consumer calls the waiter method: zh.fleetService.getFleetRow (the evaluating content of the document the same access, I ambition no reiterate here.
I was act. Net evolution, and normally, and there is not relationship between AMF, the main page recently in playing a game: Strategic globe, the game is to use Flex clients do, in mandate to make hang of the game, and accordingly it began to learn of the AMF. Gossip Hugh said, get down to business, the following proceeded AMF protocol, the instance I used in AMF data is fetched from the vertical and horizontal globe of AMF data.
Variable variables are some kind of AMF data types.
3 and 4 byte of the first 16-bit integer the number of AMF.
Boolean that it is required that the Header
7A ... ... 77 (the 27 is apt phone directly the class and method: / p>
00 03 (the requested Target 3 bytes long string) 2F 37 39 (Target content:
Target: Target values are paired with the request arranged for run-time errors we generally do not concern about this. After a successful call is the main response ought be: '/ 1/onResult'.
UTF String - Target is an identity, its role is to effect the corresponding apply and response, the reaction along Target to ascertain the corresponding apply. General use since the amplify in digit.
AMF learning a data type [transfer]
AMF3 data0 × 11Sent by Flash player 9 + is the corresponding calculation public enum DataType
Number = 0 ,
Boolean = 1,
String = 2,
UntypedObject = 3,
MovieClip = 4,
Null = 5,
Undefined = 6,
ReferencedObject = 7,
MixedArray = 8,
End = 9,
Array = 10, / / 0x0A
Date = 11, / / 0x0B
LongString = 12, / / 0x0C
TypeAsObject = 13, / / 0x0D
Recordset = 14, / / 0x0E
Xml ; = 15, / / 0x0F
TypedObject = 16, / / 0x10
AMF3data = 17 / / 0x11
; above table lists each data type representation, this outlook is not easy to understand, here I used to explain some of the major formats: 0.Number here refers to the double type, with 8 bytes of data, such as hex 00 4,010,000,000,000,000 to double the number that is a 4.0, C #, you can use the following code to read the data: byte [] d = new byte [] 0,0,
tod's shoes sale,0,0,0,0,0 x10, 0x40; / / This order is the order of the document and the amf opposed, do not forget
twice num = BitConverter.
ToDouble (d, 0); 1.Boolean corresponds. net in bool type, with 1 byte of data, and the C language alike to that used 00 false, 01, mentioned with true. Hex 0101 case in point, says true. 2.String equivalent. Net in the string types, String space occupied by a type identifier, said the string of bytes and 2 bytes plus the length of the string of UTF8 UTF8 format, the contents of the makeup. Such as hex 03 00 08 73 68 61 6E 67 67 75 61 that is the string length of 8 bytes, the string content is 73 68 61 6E 67 67 75 61,
Tods Gommino loafers, corresponds to is . In C # the string is used to read: byte [] buffer = new byte [] 0x73, 0x68, 0x61, 0x6E, 0x67, 0x67, 0x75,
Tods bags sale, 0x61; / / 03 00 08 ; 73 68 61 6E 67 67 75 61
string str = System.Text.Encoding.UTF8.GetString (buffer);
3.Object In. net is the corresponding Hashtable, the contents of the UTF8 string as Key, the other AMF type as Value, the object from the 3 bytes: 000 009 to express end. C # to read the object using the following method: personal Hashtable ReadUntypedObject ()
{
Hashtable hash = new Hashtable ();
string key = ReadShortString ();
for (byte type = ReadByte (); type,
moccasins tods! = 9; type = ReadByte ())
hash.Add (key, ReadData (type));
key ; = ReadShortString ();
; return hash;
}
5.Null is an vacant object, which occupies merely 1 byte, that is Null Object ID 0x05. 6. Undefined is merely an byte 0x06. 8.MixedArray equivalent to Hashtable, with 3 different definitions of the objects the size of the Hashtable. Read the object's C # code is:
UTF String - Response classes and means that the request or response results.
Data: is the response object to return to the AMF.
before article has been learning the AMF data types, then the next tread is to AMF document a complete archive formats.
TypeByte codeNotesNumber0 × 00Boolean0 × 01String0 × 02Object0 × 03MovieClip0 × 04Not obtainable in RemotingNull0 × 05Undefined0 × 06Reference0 × 07MixedArray0 × 08EndOfObject0 × 09See ObjectArray0x0aDate0x0bLongString0x0cUnsupported0x 0dRecordset0x0eRemoting, server-to-client onlyXML0x0fTypedObject (Class example)
AMF There are 2 editions, AMF0 and AMF3, their data type meaning in slightly different. See the lawful documentation on the AMF here.
Int32-that the length of the main body, the field generally not useful
AMF 16 hex content
15.XML is to use the type identifier 0x0F LongString directly with the string performance of the type.
AMF mainly by the following four main components:
personal Hashtable ReadDictionary ()
{
int size = ReadInt32 ();
Hashtable hash = ; new Hashtable (size);
string key = ReadShortString ();
; for (byte type = ReadByte (); type! = 9; type = ReadByte ())
;
object value = ReadData (type);
hash.Add (key, value);
key = ReadShortString ();
return hash;
}
that estimate is so many extra abstract sense, given the following instance:
00 1B (request method string length is 27 bytes)