/// <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)); }
private IASValue ReadBoolean() { return(ASBoolean.ToASBoolean(input.ReadBoolean())); }
/// <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); }