Export LittleEndianConvert (#148)

This commit is contained in:
Jef 2018-11-28 14:01:51 +01:00 committed by Sergey Pepyakin
parent 7191998216
commit c7f9196df6
2 changed files with 3 additions and 1 deletions

View File

@ -397,7 +397,7 @@ mod tests;
pub use self::memory::{MemoryInstance, MemoryRef, LINEAR_MEMORY_PAGE_SIZE};
pub use self::table::{TableInstance, TableRef};
pub use self::value::{RuntimeValue, FromRuntimeValue};
pub use self::value::{FromRuntimeValue, RuntimeValue, LittleEndianConvert, Error as ValueError};
pub use self::host::{Externals, NopExternals, HostError, RuntimeArgs};
pub use self::imports::{ModuleImportResolver, ImportResolver, ImportsBuilder};
pub use self::module::{ModuleInstance, ModuleRef, ExternVal, NotStartedModuleRef};

View File

@ -4,8 +4,10 @@ use nan_preserving_float::{F32, F64};
use types::ValueType;
use TrapKind;
/// Error for `LittleEndianConvert`
#[derive(Debug)]
pub enum Error {
/// The buffer is too short for the type being deserialized
InvalidLittleEndianBuffer,
}