Create a StructuredCloneData struct to encapsulate the result of a structured clone.

This commit is contained in:
Ms2ger 2015-01-10 15:39:47 +01:00
parent 1834359f16
commit 57aaa60fa5
5 changed files with 35 additions and 14 deletions

View 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,
}