mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 21:20:03 +00:00
[FlexBuffer][Java] ReadWriteBuf and ReadBuf interface public (#5948)
Those interfaces need to be public for use cases where the user pass a buffer to FlexBuffers class that is not a ByteBuffer. This will fix #5944
This commit is contained in:
@@ -3,7 +3,7 @@ package com.google.flatbuffers;
|
|||||||
/**
|
/**
|
||||||
* Represent a chunk of data, where FlexBuffers will read from.
|
* Represent a chunk of data, where FlexBuffers will read from.
|
||||||
*/
|
*/
|
||||||
interface ReadBuf {
|
public interface ReadBuf {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read boolean from data. Booleans as stored as single byte
|
* Read boolean from data. Booleans as stored as single byte
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package com.google.flatbuffers;
|
|||||||
* Interface to represent a read-write buffer. This interface will be used to access and write
|
* Interface to represent a read-write buffer. This interface will be used to access and write
|
||||||
* FlexBuffers message.
|
* FlexBuffers message.
|
||||||
*/
|
*/
|
||||||
interface ReadWriteBuf extends ReadBuf {
|
public interface ReadWriteBuf extends ReadBuf {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears (resets) the buffer so that it can be reused. Write position will be set to the
|
* Clears (resets) the buffer so that it can be reused. Write position will be set to the
|
||||||
|
|||||||
Reference in New Issue
Block a user