Lines Matching refs:data
25 $data,
37 $data,
63 my ($client_version) = unpack('n', $self->data);
64 my $random = substr($self->data, $ptr, 32);
66 my $session_id_len = unpack('C', substr($self->data, $ptr));
68 my $session = substr($self->data, $ptr, $session_id_len);
73 $legacy_cookie_len = unpack('C', substr($self->data, $ptr));
75 $legacy_cookie = substr($self->data, $ptr, $legacy_cookie_len);
78 my $ciphersuite_len = unpack('n', substr($self->data, $ptr));
80 my @ciphersuites = unpack('n*', substr($self->data, $ptr,
83 my $comp_meth_len = unpack('C', substr($self->data, $ptr));
85 my @comp_meths = unpack('C*', substr($self->data, $ptr, $comp_meth_len));
87 my $extensions_len = unpack('n', substr($self->data, $ptr));
91 my $extension_data = substr($self->data, $ptr);
160 my $data;
163 $data = pack('n', $self->client_version);
164 $data .= $self->random;
165 $data .= pack('C', $self->session_id_len);
166 $data .= $self->session;
168 $data .= pack('C', $self->legacy_cookie_len);
170 $data .= $self->legacy_cookie;
173 $data .= pack('n', $self->ciphersuite_len);
174 $data .= pack("n*", @{$self->ciphersuites});
175 $data .= pack('C', $self->comp_meth_len);
176 $data .= pack("C*", @{$self->comp_meths});
193 $data .= pack('n', length($extensions));
194 $data .= $extensions;
196 $self->data($data);