1// Copyright (C) 2024 Huawei Device Co., Ltd.
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6//     http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14#![allow(missing_docs, unused)]
15use std::io::{Read, Seek, SeekFrom, Write};
16
17use ipc::parcel::{Deserialize, MsgOption, MsgParcel, Serialize};
18use ipc::remote::{RemoteObj, RemoteStub};
19use ipc::{IpcResult, Skeleton};
20
21struct TestRemoteStub;
22
23fn main() {
24    use ipc::parcel::MsgParcel;
25
26    let mut msg = MsgParcel::new();
27    msg.write(&1i32).unwrap();
28    msg.write(&2i32).unwrap();
29    msg.skip_read(4);
30    assert_eq!(2, msg.read().unwrap());
31}
32