CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/serialization/BufferDataInput.java

56 lines
757 B
Java
Raw Normal View History

2021-08-31 09:14:46 +02:00
package it.cavallium.dbengine.database.serialization;
import java.io.DataInput;
import org.jetbrains.annotations.NotNull;
2021-10-19 00:22:05 +02:00
public interface BufferDataInput extends DataInput {
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
void readFully(byte @NotNull [] b);
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
void readFully(byte @NotNull [] b, int off, int len);
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
int skipBytes(int n);
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
boolean readBoolean();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
byte readByte();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
int readUnsignedByte();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
short readShort();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
int readUnsignedShort();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
char readChar();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
int readInt();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
long readLong();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
float readFloat();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
double readDouble();
2021-08-31 09:14:46 +02:00
@Override
2021-10-19 00:22:05 +02:00
String readLine();
2021-08-31 09:14:46 +02:00
@NotNull
@Override
2021-10-19 00:22:05 +02:00
String readUTF();
2021-08-31 09:14:46 +02:00
2021-10-19 00:22:05 +02:00
int getReadBytesCount();
2021-08-31 09:14:46 +02:00
}