Add length write overload for a Source.

This is merely a convenience method for semantic clarity and/or to prevent callers from needed to use the underlying buffer directly.
The file appears inconsistent in this. I matched the above method, but others do append "sink" (which I prefer). Will update.