core/byteio: add standalone write functions