Ad
  • Custom User Avatar
  • Custom User Avatar

    What I called a misaligned buffer here is a buffer that doesn't start at the address that its type alignment advertises. For example if a type is aligned at 8, you'd expect it's address to be a multiple of 8. If it isn't, it's misaligned. In the test, I build a buffer that has some arbitrary alignment, then break it to make it start at an incorrect address before calling your function.

  • Custom User Avatar

    This is the most difficult kata that I have solved, but it is due to the lack of information. I think it's useful to face similar difficulties sometimes. My code passes almost all tests except tests with 'misaligned buffers', what does misaligned buffers mean? can someone give me an example of such a buffer? I think it is similar to vector