public DcmEncodeParam(ByteOrder byteOrder, bool explicitVR, bool deflated, bool encapsulated, bool skipGroupLen, bool undefSeqLen, bool undefItemLen) : base(byteOrder, explicitVR, deflated, encapsulated) { this.skipGroupLen = skipGroupLen; this.undefSeqLen = undefSeqLen; this.undefItemLen = undefItemLen; }
public DcmDecodeParam(ByteOrder byteOrder, bool explicitVR, bool deflated, bool encapsulated) { if (byteOrder == null) throw new NullReferenceException(); this.byteOrder = byteOrder; this.explicitVR = explicitVR; this.deflated = deflated; this.encapsulated = encapsulated; }
public override ByteBuffer GetByteBuffer(ByteOrder byteOrder) { if (m_data.GetOrder() != byteOrder) SwapOrder(); return (ByteBuffer) m_data.Rewind(); }
public virtual ByteBuffer GetDataFragment(int index, ByteOrder byteOrder) { throw new NotSupportedException(this.ToString()); }
internal static ByteOrder Swap(ByteOrder from) { return from == ByteOrder.LITTLE_ENDIAN ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; }
public ByteBuffer( int size, ByteOrder order ) : base(size) { SetOrder( order ); }
public virtual ByteBuffer GetByteBuffer(ByteOrder byteOrder) { throw new NotSupportedException(this.ToString()); }
public ByteBuffer( byte[]buf, int offset, int size, ByteOrder order ) : base(buf, offset, size) { SetOrder( order ); }
/////////////////////////////////////////////////////////////////////// /// Constructor /////////////////////////////////////////////////////////////////////// //private ByteBuffer( byte[] buf ) : this( buf, ByteOrder.LITTLE_ENDIAN ) //{ //} public ByteBuffer( byte[]buf, ByteOrder order ) : base(buf) { SetOrder( order ); }
public ByteBuffer SetOrder( ByteOrder order ) { this.order = order; // Both reader and writer work on the same back store: MemoryStream if( order == ByteOrder.LITTLE_ENDIAN ) { reader = new BinaryReader( this ); writer = new BinaryWriter( this ); } else { reader = new BEBinaryReader( this ); writer = new BEBinaryWriter( this ); } return this; }
public static ByteBuffer Wrap( byte[] buf, int offset, int len, ByteOrder order ) { return new ByteBuffer( buf, offset, len, order ); }
public static ByteBuffer Wrap( byte[] buf, ByteOrder order ) { return new ByteBuffer( buf, order ); }