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 ReadOnlyAbstractByteBuf extends ReadOnlyByteBuf {
23
24 ReadOnlyAbstractByteBuf(AbstractByteBuf buffer) {
25 super(buffer);
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(index);
36 }
37
38 @Override
39 protected short _getShort(int index) {
40 return unwrap()._getShort(index);
41 }
42
43 @Override
44 protected short _getShortLE(int index) {
45 return unwrap()._getShortLE(index);
46 }
47
48 @Override
49 protected int _getUnsignedMedium(int index) {
50 return unwrap()._getUnsignedMedium(index);
51 }
52
53 @Override
54 protected int _getUnsignedMediumLE(int index) {
55 return unwrap()._getUnsignedMediumLE(index);
56 }
57
58 @Override
59 protected int _getInt(int index) {
60 return unwrap()._getInt(index);
61 }
62
63 @Override
64 protected int _getIntLE(int index) {
65 return unwrap()._getIntLE(index);
66 }
67
68 @Override
69 protected long _getLong(int index) {
70 return unwrap()._getLong(index);
71 }
72
73 @Override
74 protected long _getLongLE(int index) {
75 return unwrap()._getLongLE(index);
76 }
77 }