pub fn encode_to_guestptrlen<T>(v: T) -> u64where
    T: Debug + Serialize,