nss_sys/bindings/plarena.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5pub use crate::*;
6#[repr(C)]
7#[derive(Copy, Clone)]
8pub struct PLArena {
9 pub next: *mut PLArena,
10 pub base: PRUword,
11 pub limit: PRUword,
12 pub avail: PRUword,
13}
14
15#[repr(C)]
16#[derive(Copy, Clone)]
17pub struct PLArenaPool {
18 pub first: PLArena,
19 pub current: *mut PLArena,
20 pub arenasize: PRUint32,
21 pub mask: PRUword,
22}