public ByteString snapshot(){
  if (size > Integer.MAX_VALUE) {
    throw new IllegalArgumentException("size > Integer.MAX_VALUE: " + size);
  }
  return snapshot((int)size);
}

public ByteString snapshot ( ) { if ( size > Integer . MAX_VALUE ) { throw new IllegalArgumentException ( "size > Integer.MAX_VALUE: " + size ) ; } return snapshot ( ( int ) size ) ; }
returns an immutable copy of this buffer as a byte string .
