Add support for StreamWriteConstraints
checks
#386
Merged
StreamWriteConstraints
checks
#386