001/*
002 * This file is part of the Tuning Fork Visualization Platform
003 *  (http://sourceforge.net/projects/tuningforkvp)
004 *
005 * Copyright (c) 2005 - 2008 IBM Corporation.
006 * All rights reserved. This program and the accompanying materials
007 * are made available under the terms of the Eclipse Public License v1.0
008 * which accompanies this distribution, and is available at
009 * http://www.eclipse.org/legal/epl-v10.html
010 *
011 * Contributors:
012 *     IBM Corporation - initial API and implementation
013 */
014
015package com.ibm.tuningfork.tracegen.chunk;
016
017import org.vmmagic.pragma.Uninterruptible;
018
019@Uninterruptible
020public class FeedHeaderChunk extends RawChunk {
021
022    private static final int MAGIC_WORD_1 = 0xcafefeed;
023    private static final int MAGIC_WORD_2 = 0x2bad4dfb;
024    private static final int MAJOR_VERSION = 1;
025    private static final int MINOR_VERSION = 4;
026    private static final int DEFUNCT_FIELD = 0;
027
028    public FeedHeaderChunk() {
029        super(5 * ENCODING_SPACE_INT);
030        addInt(MAGIC_WORD_1);
031        addInt(MAGIC_WORD_2);
032        addInt(MAJOR_VERSION);
033        addInt(MINOR_VERSION);
034        addInt(DEFUNCT_FIELD);
035        close();
036    }
037
038}