Add several methods of OctetsStream.