Update read and write streaming api to use the newest format
This commit is contained in:
@@ -167,9 +167,9 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read data array
|
||||
/// Reads array.
|
||||
/// </summary>
|
||||
/// <param name="data">Array to read</param>
|
||||
/// <param name="data">Array to read.</param>
|
||||
template<typename T, typename AllocationType = HeapAllocation>
|
||||
void Read(Array<T, AllocationType>& data)
|
||||
{
|
||||
@@ -189,9 +189,9 @@ public:
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read data dictionary
|
||||
/// Reads dictionary.
|
||||
/// </summary>
|
||||
/// <param name="data">Dictionary to read</param>
|
||||
/// <param name="data">Dictionary to read.</param>
|
||||
template<typename KeyType, typename ValueType, typename AllocationType = HeapAllocation>
|
||||
void Read(Dictionary<KeyType, ValueType, AllocationType>& data)
|
||||
{
|
||||
@@ -214,34 +214,41 @@ public:
|
||||
/// <param name="obj">The object to deserialize.</param>
|
||||
void ReadJson(ISerializable* obj);
|
||||
|
||||
// Deserialization of math types with float or double depending on the context (must match serialization)
|
||||
// Set useDouble=true to explicitly use 64-bit precision for serialized data
|
||||
void Read(BoundingBox& box, bool useDouble = false);
|
||||
void Read(BoundingSphere& sphere, bool useDouble = false);
|
||||
void Read(Transform& transform, bool useDouble = false);
|
||||
void Read(Ray& ray, bool useDouble = false);
|
||||
|
||||
public:
|
||||
// Reads StringAnsi from the stream
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadStringAnsi(StringAnsi* data);
|
||||
DEPRECATED("Use Read method") void ReadStringAnsi(StringAnsi* data);
|
||||
|
||||
// Reads StringAnsi from the stream with a key
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadStringAnsi(StringAnsi* data, int8 lock);
|
||||
DEPRECATED("Use Read method") void ReadStringAnsi(StringAnsi* data, int8 lock);
|
||||
|
||||
// Reads String from the stream
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadString(String* data);
|
||||
DEPRECATED("Use Read method") void ReadString(String* data);
|
||||
|
||||
// Reads String from the stream
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadString(String* data, int16 lock);
|
||||
DEPRECATED("Use Read method") void ReadString(String* data, int16 lock);
|
||||
|
||||
// Reads CommonValue from the stream
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadCommonValue(CommonValue* data);
|
||||
DEPRECATED("Use Read method") void ReadCommonValue(CommonValue* data);
|
||||
|
||||
// Reads VariantType from the stream
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadVariantType(VariantType* data);
|
||||
DEPRECATED("Use Read method") void ReadVariantType(VariantType* data);
|
||||
|
||||
// Reads Variant from the stream
|
||||
/// [Deprecated on 11.10.2022, expires on 11.10.2024]
|
||||
void ReadVariant(Variant* data);
|
||||
DEPRECATED("Use Read method") void ReadVariant(Variant* data);
|
||||
|
||||
/// <summary>
|
||||
/// Read data array
|
||||
@@ -249,18 +256,21 @@ public:
|
||||
/// </summary>
|
||||
/// <param name="data">Array to read</param>
|
||||
template<typename T, typename AllocationType = HeapAllocation>
|
||||
void ReadArray(Array<T, AllocationType>* data)
|
||||
DEPRECATED("Use Read method") void ReadArray(Array<T, AllocationType>* data)
|
||||
{
|
||||
Read(*data);
|
||||
}
|
||||
|
||||
public:
|
||||
// Deserialization of math types with float or double depending on the context (must match serialization)
|
||||
// Set useDouble=true to explicitly use 64-bit precision for serialized data
|
||||
void ReadBoundingBox(BoundingBox* box, bool useDouble = false);
|
||||
void ReadBoundingSphere(BoundingSphere* sphere, bool useDouble = false);
|
||||
void ReadTransform(Transform* transform, bool useDouble = false);
|
||||
void ReadRay(Ray* ray, bool useDouble = false);
|
||||
// [Deprecated in v1.10]
|
||||
DEPRECATED("Use Read method") void ReadBoundingBox(BoundingBox* box, bool useDouble = false);
|
||||
// [Deprecated in v1.10]
|
||||
DEPRECATED("Use Read method") void ReadBoundingSphere(BoundingSphere* sphere, bool useDouble = false);
|
||||
// [Deprecated in v1.10]
|
||||
DEPRECATED("Use Read method") void ReadTransform(Transform* transform, bool useDouble = false);
|
||||
// [Deprecated in v1.10]
|
||||
DEPRECATED("Use Read method") void ReadRay(Ray* ray, bool useDouble = false);
|
||||
|
||||
public:
|
||||
// [Stream]
|
||||
|
||||
Reference in New Issue
Block a user