real-logic / aeron-cookbook-code

Source code related to Aeron Cookbook

Home Page:https://aeroncookbook.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is the `Strings` section on the `Direct Buffer` page correct?

yafetn opened this issue · comments

commented

Hi,

I was reading this section and I'm a little confused by the difference in the putStringAscii and putStringWithoutLengthAscii methods as shown. There's a part that says

An example of a putStringWithoutLengthAscii with the same 12 byte ASCII string, with bytes 1 through 11 holding the content:
Should it be ...bytes 0 through 11 holding the content instead?

Yes, I believe that you are correct. I will address this; thank you!

An update has been pushed. Thanks again.