/** * Create a chunk of zero-initialized bytes with at least the length that is provided by the * specified supplier. */ public static <T extends PointerBase> CGlobalData<T> createBytes(IntSupplier sizeSupplier) { return createBytes(sizeSupplier, null); }
/** * Create a chunk of bytes that is dimensioned and initialized to contain the bytes provided by * the specified supplier. */ public static <T extends PointerBase> CGlobalData<T> createBytes(Supplier<byte[]> contentSupplier) { return createBytes(contentSupplier, null); }