Skip to content

Commit

Permalink
New handling of bytes in DicomAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlSjostrand committed May 15, 2017
1 parent 75f32e8 commit 0b47550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/se/nimsa/dcm4che/streams/DicomParts.scala
Expand Up @@ -79,8 +79,8 @@ object DicomParts {
}

case class DicomAttribute(header: DicomHeader, valueChunks: Seq[DicomValueChunk]) extends DicomPart {
def bytes = valueChunks.map(_.bytes).fold(ByteString.empty)(_ ++ _)

def valueBytes = valueChunks.map(_.bytes).fold(ByteString.empty)(_ ++ _)
def bytes = header.bytes ++ valueBytes
def bigEndian = header.bigEndian

// LO: long string 64 chars max
Expand Down

0 comments on commit 0b47550

Please sign in to comment.