File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
rex/java/serialization/model Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,7 @@ def recv_return(opts = {})
119
119
120
120
# Helper method to read fragmented data from a ```Rex::Socket::Tcp```
121
121
#
122
- # @param opts [Hash]
123
- # @option opts [Rex::Socket::Tcp] :sock
122
+ # @param nsock [Rex::Socket::Tcp]
124
123
# @return [String]
125
124
def safe_get_once ( nsock = sock )
126
125
data = ''
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ class Field < Element
11
11
include Rex ::Java ::Serialization ::Model ::Contents
12
12
13
13
# @!attribute type
14
- # @return [String] The type of the field.
14
+ # @return [String] The type of the field.
15
15
attr_accessor :type
16
16
# @!attribute name
17
- # @return [Rex::Java::Serialization::Model::Utf] The name of the field.
17
+ # @return [Rex::Java::Serialization::Model::Utf] The name of the field.
18
18
attr_accessor :name
19
19
# @!attribute field_type
20
- # @return [Rex::Java::Serialization::Model::Utf] The type of the field on object types.
20
+ # @return [Rex::Java::Serialization::Model::Utf] The type of the field on object types.
21
21
attr_accessor :field_type
22
22
23
23
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
@@ -32,7 +32,7 @@ def initialize(stream = nil)
32
32
#
33
33
# @param io [IO] the io to read from
34
34
# @return [self] if deserialization succeeds
35
- # @faise [RuntimeError] if deserialization doesn't succeed
35
+ # @false [RuntimeError] if deserialization doesn't succeed
36
36
def decode ( io )
37
37
code = io . read ( 1 )
38
38
Original file line number Diff line number Diff line change @@ -190,8 +190,7 @@ def decode_value(io)
190
190
191
191
# Serializes an NewArray value
192
192
#
193
- # @param value [Fixnum] the value to serialize
194
- # @param value [Float] the value to serialize
193
+ # @param value [<Fixnum, Float>] the value to serialize
195
194
# @return [String] the serialized value
196
195
# @raise [RuntimeError] if serialization fails
197
196
def encode_value ( value )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def encode
63
63
64
64
# Adds an element to the references array
65
65
#
66
- # @param io [Rex::Java::Serialization::Model::Element] the object to save as reference dst
66
+ # @param ref [Rex::Java::Serialization::Model::Element] the object to save as reference dst
67
67
def add_reference ( ref )
68
68
self . references . push ( ref )
69
69
end
You can’t perform that action at this time.
0 commit comments