fn frame_prefix(buffer: &[u8]) -> PgWireResult<Option<(usize, usize)>>
Reads both modern continuation-prefixed and legacy IPC message lengths.