Пример #1
0
        /// <summary>
        /// Reads an AMF header from an input stream.
        /// </summary>
        /// <param name="input">The input stream</param>
        /// <returns>The AMF header that was read</returns>
        private static AMFHeader ReadAMFHeader(AMFDataInput input)
        {
            string name           = input.ReadShortString();
            bool   mustUnderstand = input.ReadBoolean();
            int    headerLength   = input.ReadInt();

            IASValue content = ReadAMFContent(input, headerLength);

            return(new AMFHeader(name, mustUnderstand, content));
        }
Пример #2
0
 private IASValue ReadBoolean()
 {
     return(ASBoolean.ToASBoolean(input.ReadBoolean()));
 }
Пример #3
0
        /// <summary>
        /// Reads an AMF header from an input stream.
        /// </summary>
        /// <param name="input">The input stream</param>
        /// <returns>The AMF header that was read</returns>
        private static AMFHeader ReadAMFHeader(AMFDataInput input)
        {
            string name = input.ReadShortString();
            bool mustUnderstand = input.ReadBoolean();
            int headerLength = input.ReadInt();

            IASValue content = ReadAMFContent(input, headerLength);

            return new AMFHeader(name, mustUnderstand, content);
        }