multiversx_sc/api/uncallable/
managed_buffer_api_uncallable.rs

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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
use crate::{
    api::{InvalidSliceError, ManagedBufferApiImpl},
    types::heap::BoxedBytes,
};

impl ManagedBufferApiImpl for super::UncallableApi {
    fn mb_new_empty(&self) -> Self::ManagedBufferHandle {
        unreachable!()
    }

    fn mb_new_from_bytes(&self, _bytes: &[u8]) -> Self::ManagedBufferHandle {
        unreachable!()
    }

    fn mb_len(&self, _handle: Self::ManagedBufferHandle) -> usize {
        unreachable!()
    }

    fn mb_to_boxed_bytes(&self, _handle: Self::ManagedBufferHandle) -> BoxedBytes {
        unreachable!()
    }

    fn mb_load_slice(
        &self,
        _source_handle: Self::ManagedBufferHandle,
        _starting_position: usize,
        _dest_slice: &mut [u8],
    ) -> Result<(), InvalidSliceError> {
        unreachable!()
    }

    fn mb_copy_slice(
        &self,
        _source_handle: Self::ManagedBufferHandle,
        _starting_pos: usize,
        _slice_len: usize,
        _dest_handle: Self::ManagedBufferHandle,
    ) -> Result<(), InvalidSliceError> {
        unreachable!()
    }

    fn mb_overwrite(&self, _handle: Self::ManagedBufferHandle, _value: &[u8]) {
        unreachable!()
    }

    fn mb_set_slice(
        &self,
        _dest_handle: Self::ManagedBufferHandle,
        _starting_position: usize,
        _source_slice: &[u8],
    ) -> Result<(), InvalidSliceError> {
        unreachable!()
    }

    fn mb_set_random(&self, _dest_handle: Self::ManagedBufferHandle, _length: usize) {
        unreachable!()
    }

    fn mb_append(
        &self,
        _accumulator_handle: Self::ManagedBufferHandle,
        _data_handle: Self::ManagedBufferHandle,
    ) {
        unreachable!()
    }

    fn mb_append_bytes(&self, _accumulator_handle: Self::ManagedBufferHandle, _bytes: &[u8]) {
        unreachable!()
    }

    fn mb_eq(
        &self,
        _handle1: Self::ManagedBufferHandle,
        _handle2: Self::ManagedBufferHandle,
    ) -> bool {
        unreachable!()
    }

    fn mb_to_hex(
        &self,
        _source_handle: Self::ManagedBufferHandle,
        _dest_handle: Self::ManagedBufferHandle,
    ) {
        unreachable!()
    }
}