Skip to content

Commit

Permalink
chore: restored functions used in downstream modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Feb 22, 2024
1 parent 61e7126 commit 23e19cc
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ public static OLogSequenceNumber getLogSequenceNumberFromPage(final ByteBuffer b
return new OLogSequenceNumber(segment, position);
}

/**
* DO NOT DELETE THIS METHOD IT IS USED IN ENTERPRISE STORAGE
*
* <p>Copies content of page into passed in byte array.
*
* @param buffer Buffer from which data will be copied
* @param data Byte array to which data will be copied
* @param offset Offset of data inside page
* @param length Length of data to be copied
*/
@SuppressWarnings("unused")
public static void getPageData(
final ByteBuffer buffer, final byte[] data, final int offset, final int length) {
buffer.get(0, data, offset, length);
}

/**
* DO NOT DELETE THIS METHOD IT IS USED IN ENTERPRISE STORAGE
*
Expand Down

0 comments on commit 23e19cc

Please sign in to comment.