From 022c88fb253fc2bb66204742aa1603ec613c54c5 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 9 Aug 2021 12:33:09 +0900 Subject: Byte Buffers --- .../gamesdk/jna/interfacestruct/IDiscordImageManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/interfacestruct/IDiscordImageManager.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/interfacestruct/IDiscordImageManager.java index 5601f41b..7c42ea33 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/interfacestruct/IDiscordImageManager.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/jna/interfacestruct/IDiscordImageManager.java @@ -28,6 +28,7 @@ import kr.syeyoung.dungeonsguide.gamesdk.jna.datastruct.DiscordImageDimensions; import kr.syeyoung.dungeonsguide.gamesdk.jna.typedef.UInt32; import kr.syeyoung.dungeonsguide.gamesdk.jna.datastruct.DiscordImageHandle; +import java.nio.ByteBuffer; import java.util.Arrays; import java.util.List; @@ -41,7 +42,7 @@ public class IDiscordImageManager extends DiscordStruct { public IDiscordImageMa public interface GetDimensionsCallback extends GameSDKCallback { EDiscordResult getDimensions(IDiscordImageManager manager, DiscordImageHandle.ByValue handle, DiscordImageDimensions dimensions); } public GetDimensionsCallback GetDimensions; - public interface GetDataCallback extends GameSDKCallback { EDiscordResult getData(IDiscordImageManager manager, DiscordImageHandle.ByValue handle, ByteByReference data, UInt32 dataLength); } + public interface GetDataCallback extends GameSDKCallback { EDiscordResult getData(IDiscordImageManager manager, DiscordImageHandle.ByValue handle, ByteBuffer data, UInt32 dataLength); } public GetDataCallback GetData; -- cgit