Let buffer.write accept raw pointer.