buf, 27, packetCount);
buf, offset+27, packetCount);
  public static int writeOggPageHeader(byte[] buf, int offset, int headerType,                                       long granulepos, int streamSerialNumber,                                       int pageCount, int packetCount,                                       byte[] packetSizes)  {    writeString(buf, offset, "OggS");             //  0 -  3: capture_pattern    buf[offset+4] = 0;                            //       4: stream_structure_version    buf[offset+5] = (byte) headerType;            //       5: header_type_flag    writeLong(buf, offset+6, granulepos);         //  6 - 13: absolute granule position    writeInt(buf, offset+14, streamSerialNumber); // 14 - 17: stream serial number    writeInt(buf, offset+18, pageCount);          // 18 - 21: page sequence no    writeInt(buf, offset+22, 0);                  // 22 - 25: page checksum    buf[offset+26] = (byte) packetCount;          //      26: page_segments    System.arraycopy(packetSizes, 0,              // 27 -  x: segment_table                     buf, 27, packetCount);    return packetCount+27;  }