lib/net/sftp/protocol/04/attributes.rb
# A helper method for parsing the ACL entry in an Attributes struct.
A helper method for parsing the ACL entry in an Attributes struct.
A helper method for parsing the ACL entry in an Attributes struct .
def parse_acl(buffer)
          acl_buf = Net::SSH::Buffer.new(buffer.read_string)
          acl = []
          acl_buf.read_long.times do
            acl << ACL.new(acl_buf.read_long, acl_buf.read_long, acl_buf.read_long, acl_buf.read_string)
          end
          acl
        end
def parse_acl ( buffer ) acl_buf = Net :: SSH :: Buffer . new ( buffer . read_string ) acl = [ ] acl_buf . read_long . times do acl << ACL . new ( acl_buf . read_long , acl_buf . read_long , acl_buf . read_long , acl_buf . read_string ) end acl end
A helper method for parsing the ACL entry in an Attributes struct.
A helper method for parsing the ACL entry in an Attributes struct .
buffer
<not_specific>