1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use crate::{
    api::{endpoint_arg_api::EndpointArgumentApiImpl, EndpointArgumentApi, Handle},
    types::heap::BoxedBytes,
};

use super::UncallableApi;

impl EndpointArgumentApi for UncallableApi {
    type EndpointArgumentApiImpl = UncallableApi;

    fn argument_api_impl() -> Self::EndpointArgumentApiImpl {
        unreachable!()
    }
}

impl EndpointArgumentApiImpl for UncallableApi {
    fn get_num_arguments(&self) -> i32 {
        unreachable!()
    }

    fn get_argument_len(&self, _arg_index: i32) -> usize {
        unreachable!()
    }

    fn copy_argument_to_slice(&self, _arg_index: i32, _slice: &mut [u8]) {
        unreachable!()
    }

    fn get_argument_boxed_bytes(&self, _arg_index: i32) -> BoxedBytes {
        unreachable!()
    }

    fn get_argument_big_int_raw(&self, _arg_id: i32) -> Handle {
        unreachable!()
    }

    fn get_argument_big_uint_raw(&self, _arg_id: i32) -> Handle {
        unreachable!()
    }

    fn get_argument_managed_buffer_raw(&self, _arg_id: i32) -> Handle {
        unreachable!()
    }

    fn get_argument_u64(&self, _arg_id: i32) -> u64 {
        unreachable!()
    }

    fn get_argument_i64(&self, _arg_id: i32) -> i64 {
        unreachable!()
    }
}