This pull request adds a getLength method to the Snapshot class. This lets you fetch the length of the associated stream without having to do something crazy like read the whole this. This is useful for me in the case where I'm sending the stream to a client and I need to send a Content-Length header before the data. The tests have been updated as well.
This pull request adds a getLength method to the Snapshot class. This lets you fetch the length of the associated stream without having to do something crazy like read the whole this. This is useful for me in the case where I'm sending the stream to a client and I need to send a
Content-Length
header before the data. The tests have been updated as well.