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 class UnpooledSlicedByteBuf extends AbstractUnpooledSlicedByteBuf {
23 UnpooledSlicedByteBuf(AbstractByteBuf buffer, int index, int length) {
24 super(buffer, index, length);
25 }
26
27 @Override
28 public int capacity() {
29 return maxCapacity();
30 }
31
32 @Override
33 public AbstractByteBuf unwrap() {
34 return (AbstractByteBuf) super.unwrap();
35 }
36
37 @Override
38 protected byte _getByte(int index) {
39 return unwrap()._getByte(idx(index));
40 }
41
42 @Override
43 protected short _getShort(int index) {
44 return unwrap()._getShort(idx(index));
45 }
46
47 @Override
48 protected short _getShortLE(int index) {
49 return unwrap()._getShortLE(idx(index));
50 }
51
52 @Override
53 protected int _getUnsignedMedium(int index) {
54 return unwrap()._getUnsignedMedium(idx(index));
55 }
56
57 @Override
58 protected int _getUnsignedMediumLE(int index) {
59 return unwrap()._getUnsignedMediumLE(idx(index));
60 }
61
62 @Override
63 protected int _getInt(int index) {
64 return unwrap()._getInt(idx(index));
65 }
66
67 @Override
68 protected int _getIntLE(int index) {
69 return unwrap()._getIntLE(idx(index));
70 }
71
72 @Override
73 protected long _getLong(int index) {
74 return unwrap()._getLong(idx(index));
75 }
76
77 @Override
78 protected long _getLongLE(int index) {
79 return unwrap()._getLongLE(idx(index));
80 }
81
82 @Override
83 protected void _setByte(int index, int value) {
84 unwrap()._setByte(idx(index), value);
85 }
86
87 @Override
88 protected void _setShort(int index, int value) {
89 unwrap()._setShort(idx(index), value);
90 }
91
92 @Override
93 protected void _setShortLE(int index, int value) {
94 unwrap()._setShortLE(idx(index), value);
95 }
96
97 @Override
98 protected void _setMedium(int index, int value) {
99 unwrap()._setMedium(idx(index), value);
100 }
101
102 @Override
103 protected void _setMediumLE(int index, int value) {
104 unwrap()._setMediumLE(idx(index), value);
105 }
106
107 @Override
108 protected void _setInt(int index, int value) {
109 unwrap()._setInt(idx(index), value);
110 }
111
112 @Override
113 protected void _setIntLE(int index, int value) {
114 unwrap()._setIntLE(idx(index), value);
115 }
116
117 @Override
118 protected void _setLong(int index, long value) {
119 unwrap()._setLong(idx(index), value);
120 }
121
122 @Override
123 protected void _setLongLE(int index, long value) {
124 unwrap()._setLongLE(idx(index), value);
125 }
126 }