1 /*******************************************************************************
2 * Copyright (c) 2017 École Polytechnique de Montréal
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.provisional
.datastore
.core
.interval
;
12 import org
.eclipse
.tracecompass
.internal
.provisional
.datastore
.core
.serialization
.ISafeByteBufferWriter
;
15 * An object that can be serialized
17 * @author Geneviève Bastien
19 public interface ISerializableObject
{
22 * Get the size on disk in bytes of an object
24 * @return the size occupied by this segment when stored in a Segment
25 * History Tree (in bytes)
30 * Method to serialize an object to a safe byte buffer
33 * The safe byte buffer to write to
35 void writeSegment(ISafeByteBufferWriter buffer
);