Add several method implementations of OctetsStream.