/* Subspace Mobile - A Android Subspace Client
Copyright (C) 2012 Kingsley Masters. All Rights Reserved.
kingsley dot masters at gmail dot com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.subspace.network.messages;
import java.nio.ByteBuffer;
import com.subspace.network.Util;
public class MapInformation {
/*
Map Information
Offset Length Description
0 1 Type Byte 0x29
1 16 Map File Name
17 4 Map Checksum *1*/
public final String Filename;
public final int CRC32;
public MapInformation(ByteBuffer buffer)
{
Filename = Util.GetString(buffer, 1,16);
CRC32 = buffer.getInt(17);
}
}