lib/packetgen/plugin/smb/blocks.rb in packetgen-plugin-smb-0.1.0 vs lib/packetgen/plugin/smb/blocks.rb in packetgen-plugin-smb-0.2.0
- old
+ new
@@ -1,7 +1,7 @@
# This file is part of PacketGen
-# See https://github.com/sdaubert/packetgen for more informations
+# See https://github.com/sdaubert/packetgen-plugin-smb for more informations
# Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net>
# This program is published under MIT license.
# frozen_string_literal: true
@@ -15,10 +15,9 @@
# * a {#words} field, an array of +PacketGen::Types::Int16le+.
# Data block is composed of:
# * a little endian 16-bit {#byte_count} field,
# * a {#bytes} field, an array of +PacketGen::Types::Int8+.
# @author Sylvain Daubert
- # @since 0.1.0
class Blocks < PacketGen::Header::Base
# @!attribute word_count
# The size, in 2-byte words, of the {#words} field.
# @return [Integer]
define_field :word_count, PacketGen::Types::Int8