The check length macro was exported for use by other libraries.
This was done to make buffer length checks common through out.
This commit is contained in:
parent
8f006edf09
commit
4295886f25
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
/// Handles the testing of a buffers size and returning the correct
|
/// Handles the testing of a buffers size and returning the correct
|
||||||
/// error if a buffer does not have the correct amount of bytes.
|
/// error if a buffer does not have the correct amount of bytes.
|
||||||
|
#[macro_export]
|
||||||
macro_rules! check_length
|
macro_rules! check_length
|
||||||
{
|
{
|
||||||
// This tests for the buffers length being less than the min value.
|
// This tests for the buffers length being less than the min value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user