コード例 #1
0
ファイル: DcmElement.cs プロジェクト: KnownSubset/DicomSharp
 public virtual ByteBuffer GetDataFragment(int index, ByteOrder byteOrder)
 {
     throw new NotSupportedException(ToString());
 }
コード例 #2
0
ファイル: DcmElement.cs プロジェクト: KnownSubset/DicomSharp
 internal static ByteOrder Swap(ByteOrder from)
 {
     return from == ByteOrder.LittleEndian
                ? ByteOrder.BigEndian
                : ByteOrder.LittleEndian;
 }
コード例 #3
0
ファイル: ByteBuffer.cs プロジェクト: KnownSubset/DicomSharp
 public ByteBuffer(int size, ByteOrder order)
     : base(size)
 {
     SetOrder(order);
 }
コード例 #4
0
ファイル: DcmElement.cs プロジェクト: KnownSubset/DicomSharp
 public virtual ByteBuffer GetByteBuffer(ByteOrder byteOrder)
 {
     throw new NotSupportedException(ToString());
 }
コード例 #5
0
ファイル: ByteBuffer.cs プロジェクト: KnownSubset/DicomSharp
 public ByteBuffer(byte[] buf, int offset, int size, ByteOrder order)
     : base(buf, offset, size)
 {
     SetOrder(order);
 }
コード例 #6
0
ファイル: ByteBuffer.cs プロジェクト: KnownSubset/DicomSharp
 public ByteBuffer(byte[] buf, ByteOrder order)
     : base(buf)
 {
     SetOrder(order);
 }
コード例 #7
0
ファイル: ByteBuffer.cs プロジェクト: KnownSubset/DicomSharp
        public ByteBuffer SetOrder(ByteOrder order)
        {
            _order = order;

            // Both reader and writer work on the same back store: MemoryStream
            if (order == ByteOrder.LittleEndian) {
                _reader = new BinaryReader(this);
                _writer = new BinaryWriter(this);
            }
            else {
                _reader = new BEBinaryReader(this);
                _writer = new BEBinaryWriter(this);
            }
            return this;
        }
コード例 #8
0
ファイル: ByteBuffer.cs プロジェクト: KnownSubset/DicomSharp
 public static ByteBuffer Wrap(byte[] buf, int offset, int len, ByteOrder order)
 {
     return new ByteBuffer(buf, offset, len, order);
 }
コード例 #9
0
ファイル: ByteBuffer.cs プロジェクト: KnownSubset/DicomSharp
 public static ByteBuffer Wrap(byte[] buf, ByteOrder order)
 {
     return new ByteBuffer(buf, order);
 }