-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allowing custom float overflow handling
- Loading branch information
1 parent
7f1998c
commit 67b0cfb
Showing
21 changed files
with
666 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
.../src/main/java/uk/co/real_logic/artio/util/float_parsing/DecimalFloatOverflowHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 2015-2025 Real Logic Limited. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package uk.co.real_logic.artio.util.float_parsing; | ||
|
||
import uk.co.real_logic.artio.fields.DecimalFloat; | ||
|
||
public interface DecimalFloatOverflowHandler | ||
{ | ||
|
||
/** | ||
* | ||
* @param charReader object that knows how to create a String or to fetch a char our of the data | ||
* @param data buffer containing the decimal float value bytes | ||
* @param offset offset within the buffer where the float number starts | ||
* @param length length of the float number in bytes | ||
* @param positionOfOverflow position within the decimal float bytes that corresponds to the digit where the overflow occurred | ||
* @param positionOfDecimalPoint position within the decimal float bytes that corresponds to the decimal point | ||
* @param tagId tag id where the float overflow happened | ||
* @return instance of DecimalFloat to be use | ||
* @param <Data> generic buffer | ||
*/ | ||
<Data> DecimalFloat handleOverflow( | ||
CharReader<Data> charReader, | ||
Data data, | ||
int offset, | ||
int length, | ||
int positionOfOverflow, | ||
int positionOfDecimalPoint, | ||
int tagId); | ||
} |
Oops, something went wrong.