pub async fn write_vec<T: PacketWritable>(
    vec: &Vec<T>,
    output: &mut impl OutputPacketBytes
) -> PacketWritableResult