Example #1
0
        /// <summary>
        /// Writes all objects in the order given and returns the resulting bytes.
        /// </summary>
        public static byte[] GetBytes(params object[] data)
        {
            var writer = new ByteWriter();

            foreach (object o in data)
            {
                writer.Write(o);
            }
            return(writer.ToArray());
        }