public static T GetValue <T>(this byte[] bytes, ref int index) { var size = TypeSize.SizeOf <T>(); return(GetValue <T>(bytes, size, ref index)); }
public static byte[] GetBytes <T>(T value) { var size = TypeSize.SizeOf <T>(); return(GetBytes <T>(value, size)); }
public static void AddBytes <T>(this byte[] bytes, T value, ref int index) { var size = TypeSize.SizeOf <T>(); AddBytes <T>(bytes, value, size, ref index); }