core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/stream/OStreamSerializerSBTreeIndexRIDContainer.java
@Override
  public int getObjectSizeInByteBuffer(ByteBuffer buffer) {
    final int offset = buffer.position();
    buffer.position();
    if (buffer.get(offset + EMBEDDED_OFFSET) > 0) {
      return embeddedObjectSerializedSize(buffer.getInt(offset + EMBEDDED_SIZE_OFFSET));
    } else {
      return SBTREE_CONTAINER_SIZE;
    }
  }
@Override
  public int getObjectSizeInByteBuffer(ByteBuffer buffer) {
    final int offset = buffer.position();
    buffer.position();
    if (buffer.get(offset + EMBEDDED_OFFSET) > 0) {
      return embeddedObjectSerializedSize(buffer.getInt(offset + EMBEDDED_SIZE_OFFSET));
    } else {
      return SBTREE_CONTAINER_SIZE;
    }
  }
@ Override public int getObjectSizeInByteBuffer ( ByteBuffer buffer ) { final int offset = buffer . position ( ) ; buffer . position ( ) ; if ( buffer . get ( offset + EMBEDDED_OFFSET ) > 0 ) { return embeddedObjectSerializedSize ( buffer . getInt ( offset + EMBEDDED_SIZE_OFFSET ) ) ; } else { return SBTREE_CONTAINER_SIZE ; } }
{@inheritDoc}
{