public byte @NotNull [] toByteArray() {
    if (myBuffer.length == myCount) {
      myIsShared = true;
      return myBuffer;
    }
    return toNewByteArray();
  }
public byte @NotNull [] toByteArray()