Beispiel #1
0
        public static T GetValue <T>(this byte[] bytes, ref int index)
        {
            var size = TypeSize.SizeOf <T>();

            return(GetValue <T>(bytes, size, ref index));
        }
Beispiel #2
0
        public static byte[] GetBytes <T>(T value)
        {
            var size = TypeSize.SizeOf <T>();

            return(GetBytes <T>(value, size));
        }
Beispiel #3
0
        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);
        }