All pastes #39376 Raw Edit

Untitled

public text v1 · immutable
#39376 ·published 2006-02-01 03:23 UTC
rendered paste body
uint64 CFileDataIO::GetIntTagValue() {

	type = ReadUInt8();
	
	ReadString(false);	
	
	switch (type) {
		
		case TAGTYPE_UINT64:
			return ReadUInt64();
			break;

		case TAGTYPE_UINT32:
			return ReadUInt32();
			break;

		case TAGTYPE_UINT16:
			return ReadUInt16();
			break;

		case TAGTYPE_UINT8:
			return ReadUInt8();
			break;
		
		default:
			throw wxString(wxT("Wrong tag type reading int tag"));
	}
}