Home | History | Annotate | Download | only in SerializeVariablesLib

Lines Matching refs:Instance

38   @param[in]  Buffer - Buffer pointing to the next variable instance

50 @param[out] SizeUsed - Total size used for this variable instance in Buffer
122 @param[in] CallbackFunction - Function called for each variable instance
260 EFI_HANDLE Instance;
262 Instance = (EFI_HANDLE) Context;
265 Instance,
318 IN SV_INSTANCE *Instance,
325 NewSize = Instance->DataSize + Size;
326 if (NewSize <= Instance->BufferSize) {
340 if (Instance->BufferPtr != NULL) {
341 CopyMem (NewBuffer, Instance->BufferPtr, Instance->DataSize);
342 FreePool (Instance->BufferPtr);
345 Instance->BufferPtr = NewBuffer;
346 Instance->BufferSize = NewSize;
355 IN SV_INSTANCE *Instance,
362 ASSERT (Instance != NULL);
365 NewSize = Instance->DataSize + Size;
366 ASSERT ((Instance->DataSize + Size) <= Instance->BufferSize);
369 (VOID*) (((UINT8*) (Instance->BufferPtr)) + Instance->DataSize),
374 Instance->DataSize = NewSize;
379 Creates a new variable serialization instance
381 @param[out] Handle - Handle for a variable serialization instance
383 @retval RETURN_SUCCESS - The variable serialization instance was
386 create the variable serialization instance.
410 Free memory associated with a variable serialization instance
412 @param[in] Handle - Handle for a variable serialization instance
414 @retval RETURN_SUCCESS - The variable serialization instance was
417 variable serialization instance.
426 SV_INSTANCE *Instance;
428 Instance = SV_FROM_HANDLE (Handle);
430 if (Instance->Signature != SV_SIGNATURE) {
434 Instance->Signature = 0;
436 if (Instance->BufferPtr != NULL) {
437 FreePool (Instance->BufferPtr);
440 FreePool (Instance);
447 Creates a new variable serialization instance using the given
448 binary representation of the variables to fill the new instance
450 @param[out] Handle - Handle for a variable serialization instance
458 imported into a new variable serialization instance
460 create the new variable serialization instance
507 @param[in] CallbackFunction - Function called for each variable instance
663 Iterates all variables found in the variable serialization instance
665 @param[in] Handle - Handle for a variable serialization instance
666 @param[in] CallbackFunction - Function called for each variable instance
685 SV_INSTANCE *Instance;
687 Instance = SV_FROM_HANDLE (Handle);
689 if ((Instance->BufferPtr != NULL) && (Instance->DataSize != 0)) {
693 Instance->BufferPtr,
694 Instance->DataSize
703 Sets all variables found in the variable serialization instance
705 @param[in] Handle - Handle for a variable serialization instance
729 Adds a variable to the variable serialization instance
731 @param[in] Handle - Handle for a variable serialization instance
742 variable serialization instance or
758 SV_INSTANCE *Instance;
763 Instance = SV_FROM_HANDLE (Handle);
765 if ((Instance->Signature != SV_SIGNATURE) ||
780 Instance,
790 AppendToBuffer (Instance, (VOID*) &SerializedNameSize, sizeof (SerializedNameSize));
795 AppendToBuffer (Instance, (VOID*) VariableName, SerializedNameSize);
800 AppendToBuffer (Instance, (VOID*) VendorGuid, sizeof (*VendorGuid));
805 AppendToBuffer (Instance, (VOID*) &Attributes, sizeof (Attributes));
811 AppendToBuffer (Instance, (VOID*) &SerializedDataSize, sizeof (SerializedDataSize));
816 AppendToBuffer (Instance, Data, DataSize);
823 Serializes the variables known to this instance into the
826 @param[in] Handle - Handle for a variable serialization instance
838 variable serialization instance or
853 SV_INSTANCE *Instance;
855 Instance = SV_FROM_HANDLE (Handle);
861 if (*Size < Instance->DataSize) {
862 *Size = Instance->DataSize;
870 *Size = Instance->DataSize;
871 CopyMem (Buffer, Instance->BufferPtr, Instance->DataSize);