mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-19 11:17:46 +00:00
20 lines
392 B
Rust
20 lines
392 B
Rust
|
use binrw::binrw;
|
||
|
|
||
|
use crate::common::{read_string, write_string};
|
||
|
|
||
|
#[binrw]
|
||
|
#[derive(Debug, Clone, Default)]
|
||
|
pub struct Server {
|
||
|
pub id: u16,
|
||
|
pub index: u16,
|
||
|
pub flags: u32,
|
||
|
#[brw(pad_before = 4)]
|
||
|
#[brw(pad_after = 4)]
|
||
|
pub icon: u32,
|
||
|
#[bw(pad_size_to = 64)]
|
||
|
#[br(count = 64)]
|
||
|
#[br(map = read_string)]
|
||
|
#[bw(map = write_string)]
|
||
|
pub name: String,
|
||
|
}
|