Example #1
0
        public override ProtocolBytes GetBytes()
        {
            ProtocolBytes protocolBytes = new ProtocolBytes();

            protocolBytes.length = (int)stream.Length;
            protocolBytes.bytes  = stream.GetBuffer();
            stream.Close();
            writer.Close();
            return(protocolBytes);
        }
Example #2
0
        public override ProtocolBytes GetBytes()
        {
            ProtocolBytes protocolBytes = new ProtocolBytes();

            protocolBytes.length = (int)stream.Length;
            protocolBytes.bytes  = stream.GetBuffer();
            stream.Close();
            writer.Close();
            return(protocolBytes);
            //return stream.ToArray();

            //stream.Flush();
            //

            /*
             * byte[] b = stream.ToArray();
             * Weborb.Util.Logging.Log.log( Weborb.Util.Logging.LoggingConstants.DEBUG, getByteArrayPrettyPrint( b ) );
             * return b;
             */
        }