mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fixes related to file input and File API
This commit is contained in:
parent
e65009f317
commit
e0f3cdafe1
3 changed files with 15 additions and 6 deletions
|
@ -66,6 +66,10 @@ impl DataSlice {
|
|||
&self.bytes[self.bytes_start..self.bytes_end]
|
||||
}
|
||||
|
||||
pub fn get_all_bytes(&self) -> Arc<Vec<u8>> {
|
||||
self.bytes.clone()
|
||||
}
|
||||
|
||||
pub fn size(&self) -> u64 {
|
||||
(self.bytes_end as u64) - (self.bytes_start as u64)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue