Skip to content

Commit 8f403f3

Browse files
committed
Update documentation
1 parent 03740df commit 8f403f3

File tree

14 files changed

+47
-14
lines changed

14 files changed

+47
-14
lines changed

lib/rex/java/serialization/model/annotation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Annotation < Element
1212
# @return [Array] The annotation contents
1313
attr_accessor :contents
1414

15+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1516
def initialize(stream = nil)
1617
super(stream)
1718
self.contents = []

lib/rex/java/serialization/model/block_data.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class BlockData < Element
1212
# @return [String] the contents of the block
1313
attr_accessor :contents
1414

15+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1516
# @param contents [String] the contents of the block
1617
def initialize(stream = nil, contents = '')
1718
super(stream)

lib/rex/java/serialization/model/block_data_long.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class BlockDataLong < Element
1212
# @return [String] the contents of the block
1313
attr_accessor :contents
1414

15+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1516
# @param contents [String] the contents of the block
1617
def initialize(stream = nil, contents = '')
1718
super(stream)

lib/rex/java/serialization/model/class_desc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class ClassDesc < Element
99

1010
attr_accessor :description
1111

12+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1213
def initialize(stream = nil)
1314
super(stream)
1415
self.description = nil

lib/rex/java/serialization/model/element.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def self.decode(io, stream = nil)
1616
elem.decode(io)
1717
end
1818

19+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1920
def initialize(stream = nil)
2021
self.stream = stream
2122
end

lib/rex/java/serialization/model/field.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Field < Element
1818
# @return [Java::Serialization::Model::Utf] The type of the field on object types.
1919
attr_accessor :field_type
2020

21+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
2122
def initialize(stream = nil)
2223
super(stream)
2324
self.type = ''

lib/rex/java/serialization/model/new_array.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class NewArray < Element
1717
# @return [Array] The contents of the java array
1818
attr_accessor :values
1919

20+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
2021
def initialize(stream = nil)
2122
super(stream)
2223
self.array_description = nil

lib/rex/java/serialization/model/new_class_desc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class NewClassDesc < Element
2626
# @return [Java::Serialization::Model::ClassDesc] The java class superclass description
2727
attr_accessor :super_class
2828

29+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
2930
def initialize(stream = nil)
3031
super(stream)
3132
self.class_name = nil

lib/rex/java/serialization/model/new_enum.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class NewEnum < Element
1414
# @return [Array] The constant value in the Java Enum
1515
attr_accessor :constant_name
1616

17+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1718
def initialize(stream = nil)
1819
super(stream)
1920
self.enum_description = nil

lib/rex/java/serialization/model/new_object.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class NewObject < Element
1414
# @return [Array] The data of the object
1515
attr_accessor :class_data
1616

17+
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
1718
def initialize(stream = nil)
1819
super(stream)
1920
self.class_desc = nil
@@ -32,7 +33,7 @@ def decode(io)
3233
if class_desc.description.class == Rex::Java::Serialization::Model::NewClassDesc
3334
self.class_data = decode_class_data(io, class_desc.description)
3435
elsif class_desc.description.class == Rex::Java::Serialization::Model::Reference
35-
ref = class_desc.description.handler - BASE_WIRE_HANDLE
36+
ref = class_desc.description.handle - BASE_WIRE_HANDLE
3637
self.class_data = decode_class_data(io, stream.references[ref])
3738
end
3839

0 commit comments

Comments
 (0)