available bytes method