a reader/writer wrapper for Network Byte Order