Strings are sequences of bytes and appear in a few forms in the protocol:
Strings that are terminated by a  byte.
The length of the string is determined by another field or is calculated at runtime
If a string is the last component of a packet, its length can be calculated from the overall-packet length minus the current position.
Copyright © 1997, 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices