1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.buffer;
17
18
19
20
21
22 final class SlicedAbstractByteBuf extends SlicedByteBuf {
23
24 SlicedAbstractByteBuf(AbstractByteBuf buffer, int index, int length) {
25 super(buffer, index, length);
26 }
27
28 @Override
29 public AbstractByteBuf unwrap() {
30 return (AbstractByteBuf) super.unwrap();
31 }
32
33 @Override
34 protected byte _getByte(int index) {
35 return unwrap()._getByte(idx(index));
36 }
37
38 @Override
39 protected short _getShort(int index) {
40 return unwrap()._getShort(idx(index));
41 }
42
43 @Override
44 protected int _getUnsignedMedium(int index) {
45 return unwrap()._getUnsignedMedium(idx(index));
46 }
47
48 @Override
49 protected int _getInt(int index) {
50 return unwrap()._getInt(idx(index));
51 }
52
53 @Override
54 protected long _getLong(int index) {
55 return unwrap()._getLong(idx(index));
56 }
57
58 @Override
59 protected void _setByte(int index, int value) {
60 unwrap()._setByte(idx(index), value);
61 }
62
63 @Override
64 protected void _setShort(int index, int value) {
65 unwrap()._setShort(idx(index), value);
66 }
67
68 @Override
69 protected void _setMedium(int index, int value) {
70 unwrap()._setMedium(idx(index), value);
71 }
72
73 @Override
74 protected void _setInt(int index, int value) {
75 unwrap()._setInt(idx(index), value);
76 }
77
78 @Override
79 protected void _setLong(int index, long value) {
80 unwrap()._setLong(idx(index), value);
81 }
82
83 }