Macro peel_ip::prelude::eof []

macro_rules! eof {
    ( $ i : expr , ) => { ... };
}

eof!(i) returns i if it is at the end of input data

please note that for now, eof only means there's no more data available, it does not work yet with smarter input types