コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PortableUserObject"/> class.
        /// </summary>
        /// <param name="marsh">Marshaller.</param>
        /// <param name="data">Raw data of this portable object.</param>
        /// <param name="offset">Offset in data array.</param>
        /// <param name="typeId">Type ID.</param>
        /// <param name="hashCode">Hash code.</param>
        public PortableUserObject(PortableMarshaller marsh, byte[] data, int offset, int typeId, int hashCode)
        {
            _marsh = marsh;

            _data   = data;
            _offset = offset;

            _typeId   = typeId;
            _hashCode = hashCode;
        }
コード例 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="marsh">Marshaller.</param>
        /// <param name="descs">Descriptors.</param>
        /// <param name="stream">Input stream.</param>
        /// <param name="mode">The mode.</param>
        /// <param name="builder">Builder.</param>
        public PortableReaderImpl
            (PortableMarshaller marsh,
            IDictionary <long, IPortableTypeDescriptor> descs,
            IPortableStream stream,
            PortableMode mode,
            PortableBuilderImpl builder)
        {
            _marsh   = marsh;
            _descs   = descs;
            _mode    = mode;
            _builder = builder;

            Stream = stream;
        }
コード例 #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="marsh">Marshaller.</param>
 /// <param name="stream">Stream.</param>
 internal PortableWriterImpl(PortableMarshaller marsh, IPortableStream stream)
 {
     _marsh  = marsh;
     _stream = stream;
 }
コード例 #4
0
ファイル: PortablesImpl.cs プロジェクト: zhiqinghuang/ignite
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="marsh">Marshaller.</param>
 internal PortablesImpl(PortableMarshaller marsh)
 {
     _marsh = marsh;
 }