mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Create a StructuredCloneData struct to encapsulate the result of a structured clone.
This commit is contained in:
parent
1834359f16
commit
57aaa60fa5
5 changed files with 35 additions and 14 deletions
12
components/script/dom/bindings/structuredclone.rs
Normal file
12
components/script/dom/bindings/structuredclone.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use libc::size_t;
|
||||
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Copy)]
|
||||
pub struct StructuredCloneData {
|
||||
pub data: *mut u64,
|
||||
pub nbytes: size_t,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue