Pat Hickey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
crates/wiggle/src/lib.rs
|
|
@ -540,7 +540,7 @@ impl<'a> GuestPtr<'a, str> { |
|
|
|
} |
|
|
|
|
|
|
|
impl<'a> GuestPtr<'a, [u8]> { |
|
|
|
/// Returns a raw pointer to the string represented by a `[u8]` without
|
|
|
|
/// Returns a pointer to the string represented by a `[u8]` without
|
|
|
|
/// validating whether each u8 is a utf-8 codepoint.
|
|
|
|
pub fn as_str_ptr(&self) -> GuestPtr<'a, str> { |
|
|
|
GuestPtr::new(self.mem, self.pointer) |
|
|
|