nrbf 0.2.2

A parser for the .NET Remoting Binary Format (NRBF).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use nom::IResult;

use crate::{error::Error, record::RecordType};

/// 2.6.3 `MessageEnd`
#[derive(Debug, Clone, PartialEq)]
pub struct MessageEnd;

impl MessageEnd {
  pub fn parse(input: &[u8]) -> IResult<&[u8], Self, Error<'_>> {
    let (input, _) = RecordType::MessageEnd.parse(input)?;

    Ok((input, Self))
  }
}