added c-store feature to dimse package, fixed logging of vr length mismatch

This commit is contained in:
Weiwei committed 2016-03-16 18:10:14 -05:00
1 parent a5d4c6d0eb
commit f839c60a68
11 files changed
+452 -33

No files matched your search

+7
View File
@@ -85,6 +85,13 @@ WriteStream.prototype.writeToBuffer = function(type, value, length) {
this.increment(length);
}
WriteStream.prototype.writeRawBuffer = function(source, start, length) {
if (!source) return;
this.checkSize(length);
source.copy(this.rawBuffer, this.offset, start, length);
this.increment(length);
}
WriteStream.prototype.write = function(type, value) {
if (isString(type)) {
this.writeString(value, type);