Add support for reading and writing longs as stringy values.

Refs #97.

Use it. Or don't. Was good fun writing/exploring the many ways to do these things.
This matches ByteString's char[] name for encoding.
On Dec 25, 2014 6:45 AM, "Jesse Wilson" <notifications@github.com> wrote:

> In okio/src/main/java/okio/Buffer.java
> <https://github.com/square/okio/pull/98#discussion-diff-22273651>:
>
> > +          } else {
> > +            width = v < 1000000000000000000L ? 18 : 19;
> > +          }
> > +        }
> > +      }
> > +    }
> > +    if (negative) {
> > +      ++width;
> > +    }
> > +
> > +    Segment tail = writableSegment(width);
> > +    byte[] data = tail.data;
> > +    int pos = tail.limit + width; // We write backwards from right to left.
> > +    while (v != 0) {
> > +      int digit = (int) (v % 10);
> > +      data[--pos] = HEX_DIGITS[digit];
>
> Maybe rename to DIGITS?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/square/okio/pull/98/files#r22273651>.
>