Blame view

morfeusz/deserialization/MorphDeserializer.cpp 497 Bytes
Michał Lenart authored
1
2
3
4
5
6
7
8
/* 
 * File:   MorphDeserializer.cpp
 * Author: mlenart
 * 
 * Created on 16 maj 2014, 12:46
 */

#include "MorphDeserializer.hpp"
Michał Lenart authored
9
#include "deserialization/deserializationUtils.hpp"
Michał Lenart authored
10
Michał Lenart authored
11
12
namespace morfeusz {
Michał Lenart authored
13
14
15
16
17
18
19
20
21
22
MorphDeserializer::MorphDeserializer() {
}

MorphDeserializer::~MorphDeserializer() {
}

long MorphDeserializer::deserialize(
        const unsigned char* ptr,
        InterpsGroupsReader& res) const {
    uint16_t size = readInt16(ptr);
Michał Lenart authored
23
    res.update(ptr, size);
Michał Lenart authored
24
25
    return size + 2;
}
Michał Lenart authored
26
27

}