Example #1
0
		public void WriteData(AMFWriter writer, object data) {
			if (data is byte[])
				data = new ByteArray(data as byte[]);

			if (data is ByteArray) {
				writer.WriteByteArray(data as ByteArray);
			}
		}
Example #2
0
 /// <summary>
 /// Reads all available data from the byte stream. The bytes are read into the ByteArray object specified by the bytes parameter.
 /// </summary>
 /// <param name="bytes">The ByteArray object to read data into.</param>
 public void ReadBytes(ByteArray bytes)
 {
     ReadBytes(bytes, 0, 0);
 }