mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fix typo
This commit is contained in:
parent
64c125a9ec
commit
54edc1e50b
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ Greenshot template files supports two file formats:
|
||||||
|
|
||||||
- **Serialization:** Uses [MessagePack](https://github.com/MessagePack-CSharp/MessagePack-CSharp/) for serialization.
|
- **Serialization:** Uses [MessagePack](https://github.com/MessagePack-CSharp/MessagePack-CSharp/) for serialization.
|
||||||
- **Marker:** Files are identified by the marker string `"GreenshotTemplate02"` at the beginning of the file. _(Note: Schema version (i.e. `".01"` ) is not part of the marker)_.
|
- **Marker:** Files are identified by the marker string `"GreenshotTemplate02"` at the beginning of the file. _(Note: Schema version (i.e. `".01"` ) is not part of the marker)_.
|
||||||
- **Implementation:** See `Greenshot.Editor.FileFormat.V2.GreenshotFileV2`.
|
- **Implementation:** See `Greenshot.Editor.FileFormat.V2.GreenshotTemplateV2`.
|
||||||
- **Binary Data Structure:**
|
- **Binary Data Structure:**
|
||||||
The file consists of:
|
The file consists of:
|
||||||
1. 22 bytes for the Greenshot marker string with complete version string (i.e. `"GreenshotTemplate02.01"` ).
|
1. 22 bytes for the Greenshot marker string with complete version string (i.e. `"GreenshotTemplate02.01"` ).
|
||||||
|
@ -192,7 +192,7 @@ From `FileFormatHandler` to the implementation, only first-class domain objects
|
||||||
# Serialization
|
# Serialization
|
||||||
|
|
||||||
The serialization is done by these steps:
|
The serialization is done by these steps:
|
||||||
1. Convert the domain object (`GreenshotFile` or `GreenshotTemplate`) to a DTO (`GreenshotFileDto` or `GreenshotTemplateDto`) by using `Greenshot.Editor.FileFormat.Dto.ConvertDtoToDomain.ToDto()`
|
1. Convert the domain object (`GreenshotFile` or `GreenshotTemplate`) to a DTO (`GreenshotFileDto` or `GreenshotTemplateDto`) by using `Greenshot.Editor.FileFormat.Dto.ConvertDomainToDto.ToDto()`
|
||||||
1. Convert the DTO to binary data using the MessagePack serializer. _(Serialization with BinaryFormatter is not implemented anymore.)_
|
1. Convert the DTO to binary data using the MessagePack serializer. _(Serialization with BinaryFormatter is not implemented anymore.)_
|
||||||
|
|
||||||
# Deserialization
|
# Deserialization
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue