Skip to content

Commit 54d6815

Browse files
committed
Regenerate flatbuffer code
Signed-off-by: Simon Davies <[email protected]>
1 parent 0453b14 commit 54d6815

25 files changed

+141
-42
lines changed

src/hyperlight_common/src/flatbuffers/hyperlight/generated/error_code_generated.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl<'a> flatbuffers::Follow<'a> for ErrorCode {
124124
type Inner = Self;
125125
#[inline]
126126
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
127-
let b = flatbuffers::read_scalar_at::<u64>(buf, loc);
127+
let b = unsafe { flatbuffers::read_scalar_at::<u64>(buf, loc) };
128128
Self(b)
129129
}
130130
}
@@ -133,7 +133,9 @@ impl flatbuffers::Push for ErrorCode {
133133
type Output = ErrorCode;
134134
#[inline]
135135
unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
136-
flatbuffers::emplace_scalar::<u64>(dst, self.0);
136+
unsafe {
137+
flatbuffers::emplace_scalar::<u64>(dst, self.0);
138+
}
137139
}
138140
}
139141

src/hyperlight_common/src/flatbuffers/hyperlight/generated/function_call_generated.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for FunctionCall<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}
@@ -290,14 +290,14 @@ pub fn size_prefixed_root_as_function_call_with_opts<'b, 'o>(
290290
/// # Safety
291291
/// Callers must trust the given bytes do indeed contain a valid `FunctionCall`.
292292
pub unsafe fn root_as_function_call_unchecked(buf: &[u8]) -> FunctionCall {
293-
flatbuffers::root_unchecked::<FunctionCall>(buf)
293+
unsafe { flatbuffers::root_unchecked::<FunctionCall>(buf) }
294294
}
295295
#[inline]
296296
/// Assumes, without verification, that a buffer of bytes contains a size prefixed FunctionCall and returns it.
297297
/// # Safety
298298
/// Callers must trust the given bytes do indeed contain a valid size prefixed `FunctionCall`.
299299
pub unsafe fn size_prefixed_root_as_function_call_unchecked(buf: &[u8]) -> FunctionCall {
300-
flatbuffers::size_prefixed_root_unchecked::<FunctionCall>(buf)
300+
unsafe { flatbuffers::size_prefixed_root_unchecked::<FunctionCall>(buf) }
301301
}
302302
#[inline]
303303
pub fn finish_function_call_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(

src/hyperlight_common/src/flatbuffers/hyperlight/generated/function_call_result_generated.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for FunctionCallResult<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}
@@ -513,7 +513,7 @@ pub fn size_prefixed_root_as_function_call_result_with_opts<'b, 'o>(
513513
/// # Safety
514514
/// Callers must trust the given bytes do indeed contain a valid `FunctionCallResult`.
515515
pub unsafe fn root_as_function_call_result_unchecked(buf: &[u8]) -> FunctionCallResult {
516-
flatbuffers::root_unchecked::<FunctionCallResult>(buf)
516+
unsafe { flatbuffers::root_unchecked::<FunctionCallResult>(buf) }
517517
}
518518
#[inline]
519519
/// Assumes, without verification, that a buffer of bytes contains a size prefixed FunctionCallResult and returns it.
@@ -522,7 +522,7 @@ pub unsafe fn root_as_function_call_result_unchecked(buf: &[u8]) -> FunctionCall
522522
pub unsafe fn size_prefixed_root_as_function_call_result_unchecked(
523523
buf: &[u8],
524524
) -> FunctionCallResult {
525-
flatbuffers::size_prefixed_root_unchecked::<FunctionCallResult>(buf)
525+
unsafe { flatbuffers::size_prefixed_root_unchecked::<FunctionCallResult>(buf) }
526526
}
527527
#[inline]
528528
pub fn finish_function_call_result_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(

src/hyperlight_common/src/flatbuffers/hyperlight/generated/function_call_type_generated.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'a> flatbuffers::Follow<'a> for FunctionCallType {
6666
type Inner = Self;
6767
#[inline]
6868
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
69-
let b = flatbuffers::read_scalar_at::<u8>(buf, loc);
69+
let b = unsafe { flatbuffers::read_scalar_at::<u8>(buf, loc) };
7070
Self(b)
7171
}
7272
}
@@ -75,7 +75,9 @@ impl flatbuffers::Push for FunctionCallType {
7575
type Output = FunctionCallType;
7676
#[inline]
7777
unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
78-
flatbuffers::emplace_scalar::<u8>(dst, self.0);
78+
unsafe {
79+
flatbuffers::emplace_scalar::<u8>(dst, self.0);
80+
}
7981
}
8082
}
8183

src/hyperlight_common/src/flatbuffers/hyperlight/generated/guest_error_generated.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for GuestError<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}
@@ -192,14 +192,14 @@ pub fn size_prefixed_root_as_guest_error_with_opts<'b, 'o>(
192192
/// # Safety
193193
/// Callers must trust the given bytes do indeed contain a valid `GuestError`.
194194
pub unsafe fn root_as_guest_error_unchecked(buf: &[u8]) -> GuestError {
195-
flatbuffers::root_unchecked::<GuestError>(buf)
195+
unsafe { flatbuffers::root_unchecked::<GuestError>(buf) }
196196
}
197197
#[inline]
198198
/// Assumes, without verification, that a buffer of bytes contains a size prefixed GuestError and returns it.
199199
/// # Safety
200200
/// Callers must trust the given bytes do indeed contain a valid size prefixed `GuestError`.
201201
pub unsafe fn size_prefixed_root_as_guest_error_unchecked(buf: &[u8]) -> GuestError {
202-
flatbuffers::size_prefixed_root_unchecked::<GuestError>(buf)
202+
unsafe { flatbuffers::size_prefixed_root_unchecked::<GuestError>(buf) }
203203
}
204204
#[inline]
205205
pub fn finish_guest_error_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(

src/hyperlight_common/src/flatbuffers/hyperlight/generated/guest_log_data_generated.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for GuestLogData<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}
@@ -288,14 +288,14 @@ pub fn size_prefixed_root_as_guest_log_data_with_opts<'b, 'o>(
288288
/// # Safety
289289
/// Callers must trust the given bytes do indeed contain a valid `GuestLogData`.
290290
pub unsafe fn root_as_guest_log_data_unchecked(buf: &[u8]) -> GuestLogData {
291-
flatbuffers::root_unchecked::<GuestLogData>(buf)
291+
unsafe { flatbuffers::root_unchecked::<GuestLogData>(buf) }
292292
}
293293
#[inline]
294294
/// Assumes, without verification, that a buffer of bytes contains a size prefixed GuestLogData and returns it.
295295
/// # Safety
296296
/// Callers must trust the given bytes do indeed contain a valid size prefixed `GuestLogData`.
297297
pub unsafe fn size_prefixed_root_as_guest_log_data_unchecked(buf: &[u8]) -> GuestLogData {
298-
flatbuffers::size_prefixed_root_unchecked::<GuestLogData>(buf)
298+
unsafe { flatbuffers::size_prefixed_root_unchecked::<GuestLogData>(buf) }
299299
}
300300
#[inline]
301301
pub fn finish_guest_log_data_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(

src/hyperlight_common/src/flatbuffers/hyperlight/generated/hlbool_generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for hlbool<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}

src/hyperlight_common/src/flatbuffers/hyperlight/generated/hldouble_generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for hldouble<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}

src/hyperlight_common/src/flatbuffers/hyperlight/generated/hlfloat_generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for hlfloat<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}

src/hyperlight_common/src/flatbuffers/hyperlight/generated/hlint_generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'a> flatbuffers::Follow<'a> for hlint<'a> {
2222
#[inline]
2323
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
2424
Self {
25-
_tab: flatbuffers::Table::new(buf, loc),
25+
_tab: unsafe { flatbuffers::Table::new(buf, loc) },
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)