]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/streams/raw_data/input/class_RawDataInputStream.php
Added start ([[S]]) and end ([[E]]) marker for BASE64 stream
[hub.git] / application / hub / main / streams / raw_data / input / class_RawDataInputStream.php
index 17fd7541028210f9a814460b7ce29aea596ba3ab..6fc9e077cd0a9d9a1910298f96207da688fc2090 100644 (file)
@@ -57,6 +57,9 @@ class RawDataInputStream extends BaseStream implements InputStreamable {
         * @todo        Do we need to do something more here?
         */
        public function streamData ($data) {
+               // Do we have start and end marker again?
+               assert((substr($data, 0, 5) == '[[S]]') && (substr($data, -5, 5) == '[[E]]'));
+
                // Can it be validated?
                if ((strlen($data) % 4) != 0) {
                        // Length modulo 4 must be zero, else it is an invalid Base64 message