File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -921,11 +921,11 @@ void ReadHandler::ClearStateFlag(ReadHandlerFlags aFlag)
921
921
922
922
size_t ReadHandler::GetReportBufferMaxSize ()
923
923
{
924
- size_t maxBufSize = chip::app:: kMaxSecureSduLengthBytes ;
924
+ size_t maxBufSize = kMaxSecureSduLengthBytes ;
925
925
Transport::SecureSession * session = GetSession ();
926
926
if (session && session->AllowsLargePayload ())
927
927
{
928
- maxBufSize = chip::app:: kMaxLargeSecureSduLengthBytes ;
928
+ maxBufSize = kMaxLargeSecureSduLengthBytes ;
929
929
}
930
930
931
931
return maxBufSize;
Original file line number Diff line number Diff line change @@ -335,9 +335,10 @@ class ReadHandler : public Messaging::ExchangeDelegate
335
335
336
336
/*
337
337
* Get the appropriate size of a packet buffer to allocate for encoding a Report message.
338
- * Depending on the underlying session, which may or may not support large
339
- * payloads, a buffer with the corresponding max size would be allocated.
338
+ * This size might depend on the underlying session used by the ReadHandler.
340
339
*
340
+ * The size returned here is the size not including the various prepended headers
341
+ * (what System::PacketBuffer calls the "available size").
341
342
*/
342
343
size_t GetReportBufferMaxSize ();
343
344
You can’t perform that action at this time.
0 commit comments