1
1
package software .coley .lljzip .util ;
2
2
3
3
import software .coley .lljzip .format .model .ZipPart ;
4
- import software .coley .lljzip .util .lazy .LazyByteData ;
4
+ import software .coley .lljzip .util .lazy .LazyMemorySegment ;
5
5
import software .coley .lljzip .util .lazy .LazyInt ;
6
6
import software .coley .lljzip .util .lazy .LazyLong ;
7
7
@@ -399,8 +399,8 @@ public static LazyLong readLazyMaskedLongQuad(MemorySegment data, long headerOff
399
399
*
400
400
* @return Lazily populated slice.
401
401
*/
402
- public static LazyByteData readLazySlice (MemorySegment data , long headerOffset , LazyInt localOffset , LazyInt length ) {
403
- return new LazyByteData (() -> {
402
+ public static LazyMemorySegment readLazySlice (MemorySegment data , long headerOffset , LazyInt localOffset , LazyInt length ) {
403
+ return new LazyMemorySegment (() -> {
404
404
return data .asSlice (headerOffset + localOffset .get (), length .get ());
405
405
});
406
406
}
@@ -415,8 +415,8 @@ public static LazyByteData readLazySlice(MemorySegment data, long headerOffset,
415
415
*
416
416
* @return Lazily populated long slice.
417
417
*/
418
- public static LazyByteData readLazyLongSlice (MemorySegment data , long headerOffset , LazyInt localOffset , LazyLong length ) {
419
- return new LazyByteData (() -> {
418
+ public static LazyMemorySegment readLazyLongSlice (MemorySegment data , long headerOffset , LazyInt localOffset , LazyLong length ) {
419
+ return new LazyMemorySegment (() -> {
420
420
return data .asSlice (headerOffset + localOffset .get (), length .get ());
421
421
});
422
422
}
@@ -431,8 +431,8 @@ public static LazyByteData readLazyLongSlice(MemorySegment data, long headerOffs
431
431
*
432
432
* @return Lazily populated long slice.
433
433
*/
434
- public static LazyByteData readLazyLongSlice (MemorySegment data , long headerOffset , LazyLong localOffset , LazyLong length ) {
435
- return new LazyByteData (() -> {
434
+ public static LazyMemorySegment readLazyLongSlice (MemorySegment data , long headerOffset , LazyLong localOffset , LazyLong length ) {
435
+ return new LazyMemorySegment (() -> {
436
436
return data .asSlice (headerOffset + localOffset .get (), length .get ());
437
437
});
438
438
}
@@ -447,8 +447,8 @@ public static LazyByteData readLazyLongSlice(MemorySegment data, long headerOffs
447
447
*
448
448
* @return Lazily populated long slice.
449
449
*/
450
- public static LazyByteData readLazyLongSlice (MemorySegment data , long headerOffset , LazyInt localOffset , long length ) {
451
- return new LazyByteData (() -> {
450
+ public static LazyMemorySegment readLazyLongSlice (MemorySegment data , long headerOffset , LazyInt localOffset , long length ) {
451
+ return new LazyMemorySegment (() -> {
452
452
return data .asSlice (headerOffset + localOffset .get (), length );
453
453
});
454
454
}
0 commit comments