forked from wolfSSL/wolfssl
optimzie bufferStatic layout
This commit is contained in:
@@ -1023,11 +1023,11 @@ enum {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
ALIGN16 byte staticBuffer[STATIC_BUFFER_LEN];
|
||||||
|
byte* buffer; /* place holder for static or dynamic buffer */
|
||||||
word32 length; /* total buffer length used */
|
word32 length; /* total buffer length used */
|
||||||
word32 idx; /* idx to part of length already consumed */
|
word32 idx; /* idx to part of length already consumed */
|
||||||
byte* buffer; /* place holder for static or dynamic buffer */
|
|
||||||
word32 bufferSize; /* current buffer size */
|
word32 bufferSize; /* current buffer size */
|
||||||
ALIGN16 byte staticBuffer[STATIC_BUFFER_LEN];
|
|
||||||
byte dynamicFlag; /* dynamic memory currently in use */
|
byte dynamicFlag; /* dynamic memory currently in use */
|
||||||
byte offset; /* alignment offset attempt */
|
byte offset; /* alignment offset attempt */
|
||||||
} bufferStatic;
|
} bufferStatic;
|
||||||
|
Reference in New Issue
Block a user