use std::ffi::c_char;
use super::error::Error;
use crate::ffi::util;
use crate::TokenAssociation;
#[no_mangle]
pub unsafe extern "C" fn hedera_token_association_from_bytes(
bytes: *const u8,
bytes_size: libc::size_t,
s: *mut *mut c_char,
) -> Error {
unsafe { util::json_from_bytes(bytes, bytes_size, s, TokenAssociation::from_bytes) }
}
#[no_mangle]
pub unsafe extern "C" fn hedera_token_association_to_bytes(
s: *const c_char,
buf: *mut *mut u8,
buf_size: *mut libc::size_t,
) -> Error {
unsafe { util::json_to_bytes(s, buf, buf_size, TokenAssociation::to_bytes) }
}