public void AddBytes(object obj, byte[] bytes, ref int index)
 {
     ByteArrayExtensions.AddBytes <T>(bytes, (T)obj, size, ref index);
 }