@@ -7,45 +7,7 @@ fn default() -> Bytes
7
7
// Errors
8
8
9
9
// Types and methods
10
- type View
11
- #alias(op_get)
12
- fn View::at(Self, Int) -> Byte
13
- fn View::data(Self) -> Bytes
14
- fn View::find(Self, Self) -> Int?
15
- fn View::get(Self, Int) -> Byte?
16
- fn View::iter(Self) -> Iter[Byte]
17
- fn View::length(Self) -> Int
18
- fn View::rev_find(Self, Self) -> Int?
19
- fn View::start_offset(Self) -> Int
20
- #alias(op_as_view)
21
- fn View::sub(Self, start? : Int, end? : Int) -> Self
22
- fn View::to_bytes(Self) -> Bytes
23
- fn View::to_double_be(Self) -> Double
24
- fn View::to_double_le(Self) -> Double
25
- fn View::to_float_be(Self) -> Float
26
- fn View::to_float_le(Self) -> Float
27
- fn View::to_int64_be(Self) -> Int64
28
- fn View::to_int64_le(Self) -> Int64
29
- fn View::to_int_be(Self) -> Int
30
- fn View::to_int_le(Self) -> Int
31
- fn View::to_uint64_be(Self) -> UInt64
32
- fn View::to_uint64_le(Self) -> UInt64
33
- fn View::to_uint_be(Self) -> UInt
34
- fn View::to_uint_le(Self) -> UInt
35
- fn View::unsafe_extract_bit(Self, Int, Int) -> UInt
36
- fn View::unsafe_extract_byte(Self, Int, Int) -> UInt
37
- fn View::unsafe_extract_bytesview(Self, Int, Int) -> Self
38
- fn View::unsafe_extract_uint64_be(Self, Int, Int) -> UInt64
39
- fn View::unsafe_extract_uint64_le(Self, Int, Int) -> UInt64
40
- fn View::unsafe_extract_uint_be(Self, Int, Int) -> UInt
41
- fn View::unsafe_extract_uint_le(Self, Int, Int) -> UInt
42
- fn View::unsafe_get(Self, Int) -> Byte
43
- impl Compare for View
44
- impl Eq for View
45
- impl Hash for View
46
- impl Show for View
47
-
48
- fn Bytes::find(Bytes, View) -> Int?
10
+ fn Bytes::find(Bytes, BytesView) -> Int?
49
11
#as_free_fn
50
12
fn Bytes::from_array(Array[Byte]) -> Bytes
51
13
#as_free_fn
@@ -57,14 +19,14 @@ fn Bytes::iter(Bytes) -> Iter[Byte]
57
19
fn Bytes::iter2(Bytes) -> Iter2[Int, Byte]
58
20
#as_free_fn
59
21
fn Bytes::of(FixedArray[Byte]) -> Bytes
60
- fn Bytes::rev_find(Bytes, View ) -> Int?
22
+ fn Bytes::rev_find(Bytes, BytesView ) -> Int?
61
23
#alias(op_as_view)
62
- fn Bytes::sub(Bytes, start? : Int, end? : Int) -> View
24
+ fn Bytes::sub(Bytes, start? : Int, end? : Int) -> BytesView
63
25
fn Bytes::to_array(Bytes) -> Array[Byte]
64
26
fn Bytes::to_fixedarray(Bytes, len? : Int) -> FixedArray[Byte]
65
27
fn Bytes::unsafe_extract_bit(Bytes, Int, Int) -> UInt
66
28
fn Bytes::unsafe_extract_byte(Bytes, Int, Int) -> UInt
67
- fn Bytes::unsafe_extract_bytesview(Bytes, Int, Int) -> View
29
+ fn Bytes::unsafe_extract_bytesview(Bytes, Int, Int) -> BytesView
68
30
fn Bytes::unsafe_extract_uint64_be(Bytes, Int, Int) -> UInt64
69
31
fn Bytes::unsafe_extract_uint64_le(Bytes, Int, Int) -> UInt64
70
32
fn Bytes::unsafe_extract_uint_be(Bytes, Int, Int) -> UInt
@@ -73,7 +35,45 @@ impl Add for Bytes
73
35
impl Default for Bytes
74
36
impl Hash for Bytes
75
37
38
+ #alias(op_get)
39
+ fn BytesView::at(Self, Int) -> Byte
40
+ fn BytesView::data(Self) -> Bytes
41
+ fn BytesView::find(Self, Self) -> Int?
42
+ fn BytesView::get(Self, Int) -> Byte?
43
+ fn BytesView::iter(Self) -> Iter[Byte]
44
+ fn BytesView::length(Self) -> Int
45
+ fn BytesView::rev_find(Self, Self) -> Int?
46
+ fn BytesView::start_offset(Self) -> Int
47
+ #alias(op_as_view)
48
+ fn BytesView::sub(Self, start? : Int, end? : Int) -> Self
49
+ fn BytesView::to_bytes(Self) -> Bytes
50
+ fn BytesView::to_double_be(Self) -> Double
51
+ fn BytesView::to_double_le(Self) -> Double
52
+ fn BytesView::to_float_be(Self) -> Float
53
+ fn BytesView::to_float_le(Self) -> Float
54
+ fn BytesView::to_int64_be(Self) -> Int64
55
+ fn BytesView::to_int64_le(Self) -> Int64
56
+ fn BytesView::to_int_be(Self) -> Int
57
+ fn BytesView::to_int_le(Self) -> Int
58
+ fn BytesView::to_uint64_be(Self) -> UInt64
59
+ fn BytesView::to_uint64_le(Self) -> UInt64
60
+ fn BytesView::to_uint_be(Self) -> UInt
61
+ fn BytesView::to_uint_le(Self) -> UInt
62
+ fn BytesView::unsafe_extract_bit(Self, Int, Int) -> UInt
63
+ fn BytesView::unsafe_extract_byte(Self, Int, Int) -> UInt
64
+ fn BytesView::unsafe_extract_bytesview(Self, Int, Int) -> Self
65
+ fn BytesView::unsafe_extract_uint64_be(Self, Int, Int) -> UInt64
66
+ fn BytesView::unsafe_extract_uint64_le(Self, Int, Int) -> UInt64
67
+ fn BytesView::unsafe_extract_uint_be(Self, Int, Int) -> UInt
68
+ fn BytesView::unsafe_extract_uint_le(Self, Int, Int) -> UInt
69
+ fn BytesView::unsafe_get(Self, Int) -> Byte
70
+ impl Compare for BytesView
71
+ impl Eq for BytesView
72
+ impl Hash for BytesView
73
+ impl Show for BytesView
74
+
76
75
// Type aliases
76
+ pub typealias BytesView as View
77
77
78
78
// Traits
79
79
0 commit comments