Skip to content

Commit

Permalink
Updated license file and added to the header
Browse files Browse the repository at this point in the history
  • Loading branch information
illescasDaniel committed Jun 25, 2017
1 parent 42b4a29 commit fec3dd3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
34 changes: 25 additions & 9 deletions File/File.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
//
// File.cpp
// File
//
// Created by Daniel Illescas Romero on 25/06/2017.
// Copyright © 2017 Daniel Illescas Romero. All rights reserved.
//
/*
The MIT License (MIT)
Copyright (c) 2017 Daniel Illescas Romero
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#pragma once

Expand Down Expand Up @@ -73,7 +89,7 @@ namespace evt {
}

template <typename Type, typename = typename std::enable_if<std::is_same<Type, std::string>::value>::type>
Type readFromBinary(size_t size) {
Type readFromBinary(std::size_t size) {
open(std::ios::in | std::ios::binary);

std::unique_ptr<char> readTextChar(new char[size]);
Expand All @@ -82,7 +98,7 @@ namespace evt {
return readTextChar.get();
}

void seekPosition(size_t offsetPosition, std::ios_base::seekdir position = std::ios::beg) {
void seekPosition(std::size_t offsetPosition, std::ios_base::seekdir position = std::ios::beg) {
writeAtEnd = false;
fileStream.seekp(offsetPosition, position);
}
Expand Down
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 HDxDaniel
Copyright (c) 2017 Daniel Illescas Romero

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit fec3dd3

Please sign in to comment.