mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
feat: Added WriteAllByte method to IcdFile class.
This commit is contained in:
parent
d4ef4c3e1a
commit
b5fc25de7c
2 changed files with 9 additions and 1 deletions
|
|
@ -5,7 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- Added WriteAllByte method on IcdFile.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Added MathUtils methods for converting to and from percentages
|
- Added MathUtils methods for converting to and from percentages
|
||||||
- Added enum extensions for finding the inclusion and exclusion of enum flags
|
- Added enum extensions for finding the inclusion and exclusion of enum flags
|
||||||
|
|
|
||||||
|
|
@ -100,5 +100,11 @@ namespace ICD.Common.Utils.IO
|
||||||
{
|
{
|
||||||
return new IcdStreamWriter(File.AppendText(path));
|
return new IcdStreamWriter(File.AppendText(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void WriteAllBytes(string path, byte[] bytes)
|
||||||
|
{
|
||||||
|
using (FileStream stream = File.OpenWrite(path))
|
||||||
|
stream.Write(bytes, 0, bytes.Length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue